Top "Doctrine" questions

The Doctrine Project is a collection of open source libraries and tools for dealing with database abstraction and Object-Relational Mapping written in PHP.

How to check if entity changed in Doctrine 2?

I need to check if a persisted entity has changed and needs to be updated on the database. What I …

php doctrine doctrine-orm
Symfony2 $user->setPassword() updates password as plain text [DataFixtures + FOSUserBundle]

I'm trying to pre-populate a database with some User objects, but when I call $user->setPassword('some-password'); and then …

php doctrine symfony fosuserbundle
Symfony2 - Using Form Builder Without Any Entity Attached

I have been using the form builder with Symfony2, and find it quite nice. I find myself wanting to create …

php forms symfony doctrine
Doctrine: Cannot select entity through identification variables without choosing at least one root entity alias

I'm using the following code in the query builder, to select an average of score values, and the category entity …

doctrine-orm doctrine doctrine-query
How to get a Collection in Doctrine2's query results

I am trying to execute a query using doctrine2 and need it to return a collection object. Simplified snippet: $players = $…

doctrine doctrine-orm
Generate unique id - doctrine - symfony2

I want to generate a unique ticket ID for my tickets. But how to let doctrine generate a unique id? /** * @…

symfony doctrine
Get entityManager inside an Entity

I'd like to use, something like: $em = $this->getEntityManager(); Inside a Entity. I understand I should do this as …

symfony doctrine
Doctrine 2 WHERE IN clause using a collection of entities

I'm attempting to build a query in Doctrine 2 that finds all Vacancy entities which are related to any of the …

php symfony orm doctrine-orm doctrine
Symfony2 doctrine:generate:entities throw Syntax Error?

when i am using the symfony2 shell and trying to run doctrine:generate:entities [MyBundle] --path='src' or doctrine:generate:…

doctrine symfony entities
Undefined index on doctrine m:n relation

I have a 'department' and 'newsItem', which are related m:n. Whenever I try to enumerate over a department's newsItems, …

php symfony1 doctrine