1
0
mirror of synced 2025-01-18 06:21:40 +03:00
This commit is contained in:
zYne 2007-01-07 18:04:17 +00:00
parent 12e76ba6a6
commit dd5c9d0516
2 changed files with 6 additions and 4 deletions

View File

@ -11,6 +11,7 @@ of the Doctrine_Record class.
<br \><br \>
However something like <i>Doctrine_PrimaryKey_TestCase</i> is not valid since its way too generic.
<br \><br \>
<li \> Every class should have atleast one TestCase equivalent
<li \> All testcase classes should inherit Doctrine_UnitTestCase
</ul>
<br \><br \>
@ -29,4 +30,4 @@ divide the method into smaller methods.
</ul>
<b>ASSERTIONS</b><br \><br \>
<ul>
<li \>There should never be assertions within any loops and rarely within functions.
<li \>There should never be assertions within any loops and rarely within functions.

View File

@ -4,10 +4,11 @@ First this value is attached to every newly created Record.
<br \><br \>
<?php
renderCode("<?php
class User {
<?php
class User extends Doctrine_record {
public function setTableDefinition() {
\$this->hasColumn('name', 'string', 50, 'default name');
}
\$this->hasColumn('name', 'string', 50, array('default' => 'default name'));
}
}
\$user = new User();