Top "Doctrine-orm" questions

Doctrine ORM is a PHP ORM.

Doctrine and LIKE query

I have entity for Doctrine: <?php /** * @Entity * @Table(name="orders") */ class Orders { /** @Id @Column(name="OID",type="integer") @GeneratedValue */ …

php mysql doctrine-orm
Get single row result with Doctrine NativeQuery

I'm trying to get a single row returned from a native query with Doctrine. Here's my code: $rsm = new ResultSetMapping; $…

doctrine-orm
Select entries between dates in doctrine 2

I will go insane with this minimal error that I'm not getting fix. I want to select entries between two …

php date doctrine-orm between query-builder
Doctrine 2 ArrayCollection filter method

Can I filter out results from an arrayCollection in Doctrine 2 while using lazy loading? For example, // users = ArrayCollection with User …

orm doctrine-orm lazy-loading arraycollection
Set LIMIT with doctrine 2?

I trying to write a query (with subquery) but i don't know how set a limit in my subquery. My …

doctrine-orm
Doctrine findBy 'does not equal'

How do I do WHERE id != 1 In Doctrine? I have this so far $this->getDoctrine()->getRepository('MyBundle:…

doctrine-orm
How to use a findBy method with comparative criteria

I'd need to use a "magic finder" findBy method using comparative criteria (not only exact criteria). In other words, I …

php symfony doctrine-orm
The EntityManager is closed

[Doctrine\ORM\ORMException] The EntityManager is closed. After I get a DBAL exception when inserting data, EntityManager closes and I'm …

symfony orm doctrine-orm entitymanager
Doctrine2: Best way to handle many-to-many with extra columns in reference table

I'm wondering what's the best, the cleanest and the most simply way to work with many-to-many relations in Doctrine2. Let's …

php orm model doctrine doctrine-orm
Use Limit and Offset in Doctrine2 query

I'm trying to do the pagination, but there is an error: [Syntax Error] line 0, col 57: Error: Expected end of string, …

symfony pagination doctrine-orm