doctrine-1.2
Doctrine does not return null for NULL values when you use get magic methods
I have a Symfony application configured with Doctrine, and I have designed a one-to-many relationship between two models: a Item belongs to a Customer, which is an alias for sfGuardUser.[详细]
2023-04-12 00:05 分类:问答symfony 1.4/ doctrine 1.2 active record relationship tables code organize
Let´s say I have a schema containing 3 tables: Users,Pages and Followers. An user can follow many pages. The followers table would contain the page_id and user_id.[详细]
2023-04-08 16:58 分类:问答How to cascade deletions with Doctrine 1.2?
I have been struggling with defining cascade behavior in Doctrine ORM. According to the documentation, one is supposed to use onDelete: CASCADE for database-level cascade (which is what I am trying t[详细]
2023-04-06 21:10 分类:问答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 分类:问答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 分类:问答symfony doctrine:generate-migrations-diff not creating version file
I already did some migrations with symfony 1.4, but for some reason, it\'s no longer working. I have my OLD model, and i added a brand new table to my schema.yml.[详细]
2023-04-01 18:13 分类:问答symfony/doctrine special query (MAX) with Doctrine_Query::create()
I am trying to add a new query to my app and I\'m stuck a bit. I also don\'t really know what to use as search term, so I\'m stuck.[详细]
2023-04-01 12:04 分类:问答Doctrine Set Case When
Is it possible to write in Doctrine the following SQL query? UPDATE Inventory SET a = CASE WHEN a=id THEN NULL ELSE a END,[详细]
2023-04-01 04:01 分类:问答30 days in Doctrine Symfony
i would like add clause where - max 开发者_JS百科30 days from now. in database i have timestamp: 2011-08-30 20:29:35[详细]
2023-04-01 01:04 分类:问答Doctrine 1.2 not creating tables from models in Zend Framework
I\'m trying to create tables from models by using: Doctrine::createTablesFromModels(APPLICATION_PATH . \'/models\');[详细]
2023-03-29 21:10 分类:问答