Commit dd5c9d05 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 12e76ba6
...@@ -11,6 +11,7 @@ of the Doctrine_Record class. ...@@ -11,6 +11,7 @@ of the Doctrine_Record class.
<br \><br \> <br \><br \>
However something like <i>Doctrine_PrimaryKey_TestCase</i> is not valid since its way too generic. However something like <i>Doctrine_PrimaryKey_TestCase</i> is not valid since its way too generic.
<br \><br \> <br \><br \>
<li \> Every class should have atleast one TestCase equivalent
<li \> All testcase classes should inherit Doctrine_UnitTestCase <li \> All testcase classes should inherit Doctrine_UnitTestCase
</ul> </ul>
<br \><br \> <br \><br \>
...@@ -29,4 +30,4 @@ divide the method into smaller methods. ...@@ -29,4 +30,4 @@ divide the method into smaller methods.
</ul> </ul>
<b>ASSERTIONS</b><br \><br \> <b>ASSERTIONS</b><br \><br \>
<ul> <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.
...@@ -4,10 +4,11 @@ First this value is attached to every newly created Record. ...@@ -4,10 +4,11 @@ First this value is attached to every newly created Record.
<br \><br \> <br \><br \>
<?php <?php
renderCode("<?php renderCode("<?php
class User { <?php
class User extends Doctrine_record {
public function setTableDefinition() { public function setTableDefinition() {
\$this->hasColumn('name', 'string', 50, 'default name'); \$this->hasColumn('name', 'string', 50, array('default' => 'default name'));
} }
} }
\$user = new User(); \$user = new User();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment