Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
4.5
-
None
Description
Steps to reproduce:
- Inject \Ibexa\Contracts\CorporateAccount\Service\CompanyService
- 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
Issue Links
- discovered while testing
-
IBX-5069 Companies REST CRUD
- Closed