Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-5484

Corporate Accounts CompanyService::getCompany API loads non-Company Content item

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 4.5
    • API
    • None

    Description

      Steps to reproduce:

      1. Inject \Ibexa\Contracts\CorporateAccount\Service\CompanyService
      2. Try loading non-Company Content item, e.g.

      $company = $this->companyService->getCompany(1);
      var_dump($company->getBillingAddress());

      Actual result:
      An error occurs
      Return value of Ibexa\Contracts\CorporateAccount\Values\Company::getBillingAddress() must be an instance of Ibexa\FieldTypeAddress\FieldType\Value, null returned

      Expected result
      $this->companyService->getCompany(1) throws Repository PAPI NotFound Exception

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              jakub.wesolowski@ibexa.co Jakub Wesołowski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: