[DDC-769] Disabling discriminator column in WHERE clause Created: 26/Aug/10  Updated: 07/Sep/10

Status: Open
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: 2.0-BETA3
Fix Version/s: None
Security Level: All

Type: Improvement Priority: Major
Reporter: Lars Strojny Assignee: Roman S. Borschel
Resolution: Unresolved Votes: 1
Labels: None


 Description   

Per default Doctrine 2 adds an IN(...)-part to the query when hydrating an entity where a discriminator column is defined. While this makes sense as a default behavior, it would be pretty helpful if one could disable the WHERE-clause for discriminator columns alltogether for performance optimization.



 Comments   
Comment by Roman S. Borschel [ 26/Aug/10 ]

That would obviously produce wrong results. Maybe you can elaborate more with an example.

Comment by Lars Strojny [ 07/Sep/10 ]

I use ENUM("foo","bar") as discriminator columns. That means, the column will contain the right values out of the box, no further result set limiting required with WHERE.

Generated at Wed Oct 01 06:04:27 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.