dql
DQL statement for many to many relationship
I\'m confused about how DQL works, and really need some help here. I have three tables, called \"Band\", \"Agent\", and \"BandAgent\".[详细]
2023-01-11 18:21 分类:问答Doctrine DQL and Namespaces (relative only?)
i noticed that if i try to do s开发者_Python百科oemthing like $query = $em->createQuery(\'SELECT u FROM \\Application\\Entities\\User u\');[详细]
2023-01-08 23:29 分类:问答pass data from the action layer to the model
I have an DQL query in LocationTable.class.php For this query i need an id which is passed to the action via the URL ?id=2[详细]
2023-01-01 11:01 分类:问答Using virtual fields in Doctrine_Query
Is there a way to insert logic based on virtual fields into a Doctrine_Query? I have defined a virtual field in my model, \"getStatus()\" which I would ultimately like to utilize in a Where clause in[详细]
2022-12-31 21:41 分类:问答what does positional and named parameter in a query mean?
here we got a positional parameter: SELECT u FROM ForumUser u WHERE u.id = ?1 and here a named parameter:[详细]
2022-12-27 19:02 分类:问答Exclude rows with Doctrine ORM DQL (NOT IN)
I\'m building a chat application with codeigniter and doctrine. Tables: - User - User_roles - User_available[详细]
2022-12-20 20:03 分类:问答Doctrine ORM - Self join without any real relation
I\'m trying to find related objects to one object by matching the objects tags. I\'ve constructed a mysql query which will return the objects that match the most by counting the matching tags.[详细]
2022-12-18 18:18 分类:问答Having a relation 1 to many on Doctrine but having 2 fields being the primary key on the other end
Does anyone knows how can I have a relation 1 to many in doctrine but in this special way: in my principal table I have some fields, almnost none of them are fields which could have translations[详细]
2022-12-18 11:20 分类:问答How can get unique values from data table using dql?
I am having a table in which there is a column in which various values are stored.i want to retrieve unique values from that table using dql.[详细]
2022-12-18 02:05 分类:问答Access field in a many-to-many intermediate table with DQL in Doctrine
i have a model called ContentGroup and another called Content with a many-to-many relation between them.[详细]
2022-12-17 00:06 分类:问答