Hello everyone,

I have an easy scenario, I will delete an entity, create a new entity and 
commit.
Based on our architecture the creation process will automatically check if 
there is another entity similar to itself, so I need a transaction level to 
read the uncommitted changes.
Our in other words the select query should not find the deleted entity.

I am using the EntityManager to remove the entity and persists a new one. 
But it seems not to work to change the transaction isolation:

$em->getConnection()->setTransactionIsolation(Connection::TRANSACTION_READ_UNCOMMITTED);
> $em->remove($entity); 

$result = $em->createQuery(...)->getResult();


$result always contains the "deleted" entity.

How can I get this to work?

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to