How do you override a Constant in Doctrine's Models?

Crokwroro

New Member
In Doctrine you are provided with a Constant Variable that allows you to set a global Identifier column in all of the models that are generated by Doctrine's code. I am trying to figure out how I can override/shut off this value so that it does not create this column in a specific table.The Constant is: ATTR_DEFAULT_IDENTIFIER_OPTIONSIt gets set in a bootstrapped PHP file and it automatically creates the appropriate table in your Database.Example Code:\[code\]// set the default primary key to be named 'id', integer, 4 bytes, Auto Increment = trueDoctrine_Manager::getInstance()->setAttribute(Doctrine::ATTR_DEFAULT_IDENTIFIER_OPTIONS,array('name' => 'id', 'type' => 'integer', 'length' => 4, 'autoincrement' => true));\[/code\]But what if I had a table/model that I did not need an "id" column for?
 
Back
Top