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_OPTIONS
It gets set in a bootstrapped PHP file and it automatically creates the appropriate table in your Database.
Example Code:
// set the default primary key to be named 'id', integer, 4 bytes, Auto Increment = true
Doctrine_Manager::getInstance()->setAttribute(
Doctrine::ATTR_DEFAULT_IDENTIFIER_OPTIONS,
array('name' => 'id', 'type' => 'integer', 'length' => 4, 'autoincrement' => true));
But what if I had a table/model that I did not need an "id" column for?