8 lines
375 B
PHP
8 lines
375 B
PHP
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>]
|