DragonByte Tech
Well-known member
Sorry for the poor title
If I have this relation:
And the
Fillip
If I have this relation:
PHP:
'License' => [
'entity' => 'DBTech\eCommerce:License',
'type' => self::TO_ONE,
'conditions' => [
['license_id', '=', '$license_id']
],
'primary' => true
],
And the
license_id
field changes, can I use $this->License
in the _preSave
function to access the new License entity, or should I go via the EntityManager?Fillip