Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SAMBUMBA
pasteque-server
Commits
06cf392f
Commit
06cf392f
authored
Dec 26, 2017
by
Guillaume Wauquier
Browse files
Rétablit les catégrory parente
parent
ec6a2e54
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Model/Category.php
View file @
06cf392f
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment