FAQ Database Discussion Community

Why tree is invalid?

I have a entity that use doctrine extension, tree behaviuor, i found problems in tree and don't know it's reason. my entity: MyEntity: type: entity gedmo: tree: type: nested id: id: type: integer generator: strategy: AUTO fields: # ... lft: type: integer gedmo: - treeLeft rgt: type: integer gedmo: -...

Symfony2 stof doctrine uploadable with 1..1 or n..1 relations

i'm having trouble to use the uploadable extension of stofdoctrinebundle i've a File entity : <?php namespace my\TestBundle\Entity; use Gedmo\Mapping\Annotation as Gedmo; use Doctrine\ORM\Mapping as ORM; /** * File * * @ORM\Table() * @ORM\Entity(repositoryClass="my\TestBundle\Entity\FileRepository") * @Gedmo\Uploadable(path="uploads", filenameGenerator="SHA1", allowOverwrite=true, appendNumber=true) */ class File { /** * @ORM\Column(name="id", type="integer") * @ORM\Id *...