You can use the currently undocumented IDENTITY
function to select the FK IDs in a query:
SELECT IDENTITY(c.parent) ...
More Related Contents:
- Count Rows in Doctrine QueryBuilder
- Using Relationships with Multiple Entity Managers
- symfony2: how to use group_concat in QueryBuilder
- The EntityManager is closed
- Symfony 2: Creating a service from a Repository
- How to convert this to Doctrine 2 QueryBuilder format?
- How to configure naming strategy in Doctrine 2
- Primary key of owning side as a join column
- Is there a built-in way to get all of the changed/updated fields in a Doctrine 2 entity
- Symfony2 file upload step by step
- How do I read configuration settings from Symfony2 config.yml?
- How to select randomly with doctrine
- Why composer install timeouts after 300 seconds?
- How can I access a service outside of a controller with Symfony2?
- What is the new Symfony 3 directory structure?
- Injecting SecurityContext into a Listener prePersist or preUpdate in Symfony2 to get User in a createdBy or updatedBy Causes Circular Reference Error
- passing data from controller to Type symfony2
- Symfony2, Dynamic DB Connection/Early override of Doctrine Service
- Get current URL in Twig template?
- In Symfony2, why is it a bad idea to inject the service container, rather than individual services?
- Is there a way to specify Doctrine2 Entitymanager implementation class in Symfony2?
- How to setup table prefix in symfony2
- The method name must start with either findBy or findOneBy. Undefined method Symfony?
- Extends parent blocks from embed template
- Build a form having a checkbox for each entity in a doctrine collection
- INNER JOIN Results from Select Statement using Doctrine QueryBuilder
- How to get list of all routes of a controller in Symfony2?
- Memory leaks Symfony2 Doctrine2 / exceed memory limit
- Symfony2 error 500 instead of 404 at production
- Symfony2 default locale in routing