I\'ve come across this scenario a few times in working on a current project. I have to see if a record exists then if it doesn\'t I need to add it, if it does then I need to update. What is the standa
I need to perform DQL delete from multiple related tables. In SQL it is something like this: DELETE r1,r2
I\'m using Doctrine with Zend Framework. For my model, I\'m using a base class, the regular class (which extends the base class), and a table class.
i have read this Doctrine: How to remove part of a where clause from select query inside listener (preDqlSelect)?
This has bothered me for quite a while, but now it is necessity that I find the answer. We are working on quite a large project using CodeIgniter plus Doctrine.
For an event system I need to check if there are enough resources available for an event. Events have a a start and end timestamp, and needs a number of resources (for the sake of simplicity we\'ll as
I\'m using Zend Framework with Doctrine. I\'m creating an object, editing, then saving it. That works fine. However, when I later try to find that object based on one of the column values, Doctrine th
The problem: I have a database that\'s running on a shared server. I do not have permission to drop/ create a database via the command line
In mysql I can set default value for column like this: ALTER TABLE <Table> CHANGE <Column> DEFAULT <NEW_DEFAULT_VALUE>
I have a simple table like following: class SnookerCurrentInfo extends Doctrine_Record { public function setTableDefinition()