Doctrineauto-createsdatabasetablesandalwaysaddsaprimarykeycolumnnamed'id'totablesthatdoesn't have any primary keys specified. Only thing you need to for creating database tables
is defining a class which extends Doctrine_Record and setting a setTableDefinition method with hasColumn() method calls.
<br \><br \>
Consider we want to create a database table called 'user'withcolumnsid(primarykey),name,username,passwordandcreated.Youonlyneedcoupleoflinesofcode