doctrine
Keep selected fields order with HYDRATE_ARRAY in Doctrine 1.2
My question is quite simple but I can\'t manage to find an answer. When I execute a query like: $query->select(\'t2.name as t2_name, t1.name as t1_name\')[详细]
2023-04-03 02:09 分类:问答symfony doctrine pagination brings more data than set per page
I am setting 1 row per page in symfony pager but its showing more data than 1. It is because my query is left joining the sfGuardUser table with other tables and it is causing duplication of \'sfGuard[详细]
2023-04-02 23:11 分类:问答PHP + APC + Zend: Classes cannot be found
I can\'t get APC to work properly with my Zend+Doctrine application. When I turn APC on I get the error:[详细]
2023-04-02 14:30 分类:问答Doctrine 2 LifecycleCallbacks with abstract base class are not called
I have this situation: Abstract Class: abstract class AbstractBase { /** * @ORM\\Id * @ORM\\GeneratedValue * @ORM\\Column(type=\"integer\")[详细]
2023-04-02 14:12 分类:问答Is there a way to enforce a unique column using doctrine2?
I know I can always set a unique DB key using MYSQL schema however was just curious if ORM\'s like doctrine allowed you to set a column to be unique in code?[详细]
2023-04-02 11:14 分类:问答Docblocks for Doctrine collections
Is there a standard way to document the expected class of entities inside a Collection in the docblock comment in a Doctrine project? Something like:[详细]
2023-04-02 10:44 分类:问答How to update sfUserProfile after the completion of a separate module? postSave() not working
I have a registration form that includes sfRegistration and sfProfile, which after completion, get\'s redirected to another form - to determine the user\'s corporation and is a seperate module.The sfP[详细]
2023-04-02 07:25 分类:问答count with doctrine
I have two table: Name id | name | city_id 1| aaa| 1 2| vvv| 2 3| ddd| 2 4| sss| 3 5| dds| 1 etc City: id | name[详细]
2023-04-02 07:13 分类:问答Doctrine2 - (how to) fetch associated objects with main
Assume that i have an association mapping in Doctrine2. How to define that i need to fetch all associated objects while querying the main one?[详细]
2023-04-02 05:36 分类:问答edit values in app.yml by backend
public function executeShow(sfWebRequest $request) { $this->category = $this->getRoute()->getObject();[详细]
2023-04-02 02:33 分类:问答