Having trouble handling a hasMany relation. So, I have Product -> Has Many -> Properties
I've defined the productId property on the Properties model; Defined the hasMany decorator on the 'properties' field of the Product model.
Updated the Product repository to handle assignment via a HasManyRepositoryFactory.
Only issue now is that the automigration creates a "properties" TEXT field on the Product table. (MySQL).
Hi,
Having trouble handling a hasMany relation. So, I have Product -> Has Many -> Properties
I've defined the productId property on the Properties model; Defined the hasMany decorator on the 'properties' field of the Product model.
Updated the Product repository to handle assignment via a HasManyRepositoryFactory. Only issue now is that the automigration creates a "properties" TEXT field on the Product table. (MySQL).
Any idea how I could define it as purely virtual?
Thanks!