You are currently reading the 1.2 documentation. Switch to 2.2  2.1  2.0 

Default Added Auto Id

You can customize the properties of the automatically added primary key in Doctrine models.

$manager->setAttribute(Doctrine::ATTR_DEFAULT_IDENTIFIER_OPTIONS,
  array('name' => '%s_id', 'type' => 'string', 'length' => 16));

The %s string in the name is replaced with the table name.


Questions and Feedback

If you find a problem with the documentation or have a suggestion, please register and open a ticket.

If you need support or have a technical question, you can post to the user mailing-list.