Closed DinoTD closed 5 years ago
When using property mapping (not using $attributes array), relationship should be defined as a property on the entity, of the same name as the relationship method. Also you should add the relationship name in the entityMap's '$properties` array.
Hi, It works for me now, thanks.
Closing as this was answered.
Problem getting relations:
class Product extends Entity { public $id; public $category_id; public $name; }
class Category extends Entity { public $id; public $name; }
Am I doing something wrong?