1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/manual/docs/Getting started - Setting table definition - Introduction.php
2006-07-23 21:08:06 +00:00

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>]