doctrine-orm
Display data from database to forms in Symfony2
In this project I\'m building, I have many forms to add data to the database that the site u开发者_如何学运维ses. Obviously, if a user add\'s data they must be able to edit this data (or delete it).[详细]
2023-04-12 23:18 分类:问答Doctrine 2 ODM MongoDB storing images in GridFS from memory
i want to store uploaded files in mongodb as GridFsFile. Im using the doctrine 2开发者_运维技巧 odm. it works fine when i read a file from disk and store it. But what i would like to achieve is to avo[详细]
2023-04-12 20:13 分类:问答Doctrine 2.0 vs 2.1 cascade remove OneToMany
Hello I have problem when trying to cascade remove entities in OneToMany relations. After a few hours of debugging I tried to downgrade the doctrine from the latest 2开发者_如何学C.1.2 to 2.0.2 and It[详细]
2023-04-12 20:05 分类:问答How add BLOB type in Doctrine 2 using Symfony 2
In Symfony 2 I generate a Bundle for storing any type of document into database, but I need the BLOB column type.[详细]
2023-04-12 16:48 分类:问答Doctrine 2, Need to execute code pre-persist/post-persist
I am using Doctrine 2 entities. We have some entities which have to update related items when they are saved to the database. For example, when a user record is modified, we save it as a new record, w[详细]
2023-04-12 14:07 分类:问答How can I do complex entity associations queries in doctrine 2? (virtual entity)
Let\'s say I have a blog application. The author can add multiple images to a post either by giving a link to a url of an existing image on the web, or upload a new image.[详细]
2023-04-12 13:53 分类:问答Symfony2 forms: How do I persist an entity with a nullable association?
When saving form submission data, I\'m having trouble persisting a new entity instance where the entity has a nullable association with another entity and I attempt to set it to null.After creating a[详细]
2023-04-12 11:21 分类:问答Doctrine 2 ORM and MongoDB ODM mapping on the same class
Is it possible to map the same class to both ORM and ODM using annotations? We are deciding what to use so we want to do some performance measurment and we also want to be able to switch the persist[详细]
2023-04-12 11:14 分类:问答How can I use a native query with an array IN parameter in Doctrine2
I have this native SQL written in doctrine SELECT COUNT(DISTINCT t.int_task_type_id) as a_count FROM tbl_xref_people_task t[详细]
2023-04-12 10:43 分类:问答How should this Many-To-Many doctrine2 association be defined?
I have two Entities - Users & Challenges. A User can participate in many challenges and a challenge can have many participants (users). I began approaching this problem by creating a Many-To-Many[详细]
2023-04-12 07:48 分类:问答