doctrine-1.2
Doctrine hook to validate record references onInsert
I want to add Product if and only if it has say at least two Variants (Product can have many Variants).[详细]
2023-02-08 03:35 分类:问答Default sort attribute for Doctrine Model
I was wondering if there is a way to declare the default order for my doctrine models. e.g. I have a work model and it has 开发者_JAVA百科photos. When I load a work, all photos associated to it get[详细]
2023-02-07 10:35 分类:问答How to get the following array from database?
Ok to make it more clear: I am Using doctrine I have a table Brands and Products Brand id name Product id name[详细]
2023-02-06 18:26 分类:问答Using sfDoctrineGuardPlugin. Want to set id field without user choice
I am using Symfony 1.4 and Doctrine 1.2 and sfDoctrineGuardPlugin. I have a article create pa开发者_开发百科ge. On my article table, i have profile_id field for saving which user (author) wrote it.[详细]
2023-02-06 14:12 分类:问答Switching db connection in Doctrine models
I\'m researching Zend+Doctrine performance on an existing shard database system. Most of my application models connect to the main database (db1) whilst some models need to dynamically connect to diff[详细]
2023-02-06 10:15 分类:问答One to many connection in Doctrine
I have tried to create one-to-many connection, but it works very strange. I suspect that class User has one Country, and class Country has many Users.[详细]
2023-02-05 12:09 分类:问答Doctrine Relations Problem
I am trying to run this query: $record = Doctrine_Query::create() ->select(\'m.*\') ->from(\'Modification m\')[详细]
2023-02-04 09:06 分类:问答Why does doctrine use WHERE IN instead of LIMIT?
Why does doctrine (1.2) use WHERE IN instead of LIMIT? This code: Doctrine_Query::create() ->from(\'Table t\')[详细]
2023-02-03 22:51 分类:问答Doctrine: Order by alias with same name as column
I have following DQL (Doctrine1.2): $dql->select(\'sum(t.column1) column1, t.column2\') ->from(\'Table t\')[详细]
2023-02-03 15:53 分类:问答dql query builder Doctrine 1.2
Is there easier way to build querys in doctrine then this. At this point there is only one parameter, but some case there could be like username, tagname, etc.[详细]
2023-02-01 21:52 分类:问答