root/branches/0.9/models/BooleanTest.php
| Revision 2353, 260 bytes (checked in by meus, 16 months ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | class BooleanTest extends Doctrine_Record { |
| 3 | public function setTableDefinition() { |
| 4 | $this->hasColumn('is_working', 'boolean'); |
| 5 | $this->hasColumn('is_working_notnull', 'boolean', 1, array('default' => false, 'notnull' => true)); |
| 6 | } |
| 7 | } |
Note: See TracBrowser
for help on using the browser.