1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/manual/docs/Object relational mapping - Introduction.php

8 lines
375 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
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>]