We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It can not be used relationship in embeddables because throw exception Nextras\Orm\NullValueException
Property ...\Order::$country is not nullable
/** * @property-read string|NULL $street * @property-read string|NULL $city * @property-read string|NULL $postCode * @property Country $country {default CZ} {m:1 Country, oneSided=true} */ class Address extends \Nextras\Orm\Entity\Embeddable\Embeddable { public function __construct(string $street, string $city, string $postCode, Country $country) { parent::__construct([ 'street' => $street, 'city' => $city, 'postCode' => $postCode, 'country' => $country, ]); } }
Mapping
$conventions->setMapping('address->street', 'street'); $conventions->setMapping('address->city', 'town'); $conventions->setMapping('address->postCode', 'postcode'); $conventions->setMapping('address->country', 'country_code');
Versions::
The text was updated successfully, but these errors were encountered:
embeddables: do not force null embeddable event when we have no values [
9e3ce7f
closes #427]
In the end, this is not really not supported. Please see for future enhancements and implementation: #430
Sorry, something went wrong.
No branches or pull requests
It can not be used relationship in embeddables because throw exception Nextras\Orm\NullValueException
Property ...\Order::$country is not nullable
Mapping
Versions::
The text was updated successfully, but these errors were encountered: