doctrine-extensions / DoctrineExtensions

Doctrine2 behavioral extensions, Translatable, Sluggable, Tree-NestedSet, Timestampable, Loggable, Sortable
MIT License
4.04k stars 1.27k forks source link

[Tree] - troubles with lft column #352

Closed enricostano closed 12 years ago

enricostano commented 12 years ago

I was following this (http://www.gediminasm.org/article/tree-nestedset-behavior-extension-for-doctrine-2) tutorial and I get this error while creating new object:

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'lft' cannot be null

here is my class: https://gist.github.com/2795629

and the controller: https://gist.github.com/2795632

thank you

l3pp4rd commented 12 years ago

the tree extension listener is not active if you get such error. read the documentation on you to install extensions. if you use stof bundle, enable tree

enricostano commented 12 years ago

Solved, thank you!