FAQ Database Discussion Community


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

symfony2,upload,one-to-one,stofdoctrineextensions
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 *...

Why tree is invalid?

symfony2,doctrine2,tree,doctrine-extensions,stofdoctrineextensions
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: -...