Getting started - Setting table definition - Introduction.php 375 Bytes
Newer Older
doctrine's avatar
doctrine committed
1 2 3 4 5 6 7
Setting up a table definition in doctrine is done by using hasColumn method calls inside setTableDefinition method.
Doctrine_Record::hasColumn() takes 4 arguments:<br \>

1. [<b class="title">column name</b>] <br />
2. [<b class="title">column type</b>] <br />
3. [<b class="title">column length</b>] <br />
4. [<b class="title">column constraints and validators</b>]