Skip to content

Commit

Permalink
Update ListingCategory addField method
Browse files Browse the repository at this point in the history
  • Loading branch information
cocolabssas committed Mar 21, 2019
1 parent 3496010 commit 8cd9064
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Cocorico/CoreBundle/Entity/ListingCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public function getChildren()
*/
public function addField($field)
{
$field->setCategory($this);
$this->fields[] = $field;

return $this;
Expand Down

0 comments on commit 8cd9064

Please sign in to comment.