doctrine-orm
Saving a Zend date in the database with Doctrine 2.1
I want to save a datetime in the database which was created with the doctrine schema tool. In my form I set a date and time and i want to save it as a datetime in the database.[详细]
2023-04-05 22:05 分类:问答Get random records with Doctrine
I wonder how to get a random number of Members from a Group, but I do not know what is the best way to do this, and I think ORDER BY RAND() is not the best alternative, as a Group can have more than 1[详细]
2023-04-05 18:37 分类:问答error saving OneToMany and ManyToMany relationship with Doctrine 2
I have a problem with \"Doctrine2\". When attempting to save a relationship \"ManyToMany\" or \"OneToOne\" PHP leave exception error! I leave the error so that you can help me.[详细]
2023-04-05 14:56 分类:问答Doctrine2 Mongodb adding more $or operator
It is possible for doctrine2 ODM to create the following query? db.Product.find({ \"$or\": [ { \"name\": new RegExp(\"test*\", \"i\") }, { \"tags\"开发者_如何学JAVA: new RegExp(\"public true*\", \"i\[详细]
2023-04-05 06:43 分类:问答Doctrine 2: weird behavior while batch processing inserts of entities that reference other entities
I am trying out the batch processing method described here: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/batch-processing.html[详细]
2023-04-04 22:07 分类:问答How can I write a DQL for these entities?
I have entities 开发者_如何学Goseen as DB screenshot: You can see the screenshot here-> http://imageshack.us/photo/my-images/830/asdsasda.jpg/[详细]
2023-04-04 18:14 分类:问答How to deal with big tables in MySQL? (DB design for a Game)
Suppose I have a Games table, a Players table, and a Users table. Each Game has many Players Each Player has a status, like \'dead\' or \'alive\'. So players are not users.[详细]
2023-04-04 13:11 分类:问答How to match only last updated records in Doctrine?
I am developing an application with Symfony2 and Doctrine, and have a table called status where I store the location and date books, such as:[详细]
2023-04-04 13:05 分类:问答CASTING attributes for Ordering on a Doctrine2 DQL Query
I am trying to get Doctrine2 Entities, ordered by their ID which apparently is a String even though it contains only Numbers.[详细]
2023-04-04 09:44 分类:问答Limit amount of records retrieved when using Doctrine DQL in Symfony2
I have the following query: $latestcontent = $em->createQuery(\' SELECT c.title, c.content, c.lastedit开发者_开发知识库, a.firstname, a.surname[详细]
2023-04-04 09:04 分类:问答