Commit 06cf392f authored by Guillaume Wauquier's avatar Guillaume Wauquier
Browse files

Rétablit les catégrory parente

parent ec6a2e54
......@@ -37,17 +37,20 @@ class Category extends DoctrineModel
protected function getDirectFieldNames() {
return ['id', 'reference', 'label', 'dispOrder', 'hasImage'];
}
protected function getAssociationFields() {
return [];
return [
[
'name' => 'parent',
'class' => '\Pasteque\Server\Model\Category',
'null' => true
]
];
}
public function __construct() {
$this->children = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Internal ID of the category for performance issues.
* @var integer
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment