Top "Doctrine-orm" questions

Doctrine ORM is a PHP ORM.

Symfony2 file upload step by step

I am still learning Symfony2 and don't understand how to upload a file. Don't worry, I've already checked the documentation. …

file symfony doctrine-orm upload formbuilder
Symfony2 and Doctrine - Error: Invalid PathExpression. Must be a StateFieldPathExpression

I have an entity that looks like this: /** * @Gedmo\Tree(type="nested") * @ORM\Table(name="categories") * @ORM\Entity() */ class Category …

symfony doctrine-orm dql
Doing a WHERE .. IN subquery in Doctrine 2

I'd like to select order items from all orders with a specific item. In SQL I'd do it like this: …

sql database doctrine-orm
Doctrine 2: Call to a member function format() on a non-object ... in DateTimeType.php

I have a DateTime field: /** * Date time posted * @Column(type="datetime") */ private $dtPosted; which is set to a default value …

php doctrine-orm doctrine
Too much data with var_dump in symfony2 doctrine2

I have around 40 entities and many bidirectional relationships. Whenever i use var_dump($user) or any entity my browser gets …

php debugging doctrine-orm symfony-2.1
Doctrine 2 can't use nullable=false in manyToOne relation?

An User has one Package associated with it. Many users can refer to the same package. User cannot exists without …

symfony doctrine doctrine-orm
How to get a one-dimensional scalar array as a doctrine dql query result?

I want to get an array of values from the id column of the Auction table. If this was a …

php doctrine-orm
Symfony getting logged in user's id

I am developing an application using Symfony2 and doctrine 2. I would like to know how can I get the currently …

symfony doctrine-orm dql
"Class XXX is not a valid entity or mapped super class" after moving the class in the filesystem

I had an entity class in Aib\PlatformBundle\Entity\User.php I had no problems trying to create its form …

php symfony doctrine-orm
Output array in Twig

I trying to output an array from the database to the screen. In my entity: /** * @ORM\Column(type="array", nullable=…

arrays symfony doctrine-orm twig longtext