Some experimental model tests.

This commit is contained in:
James Cole
2014-07-09 13:19:30 +02:00
parent 5645f7a893
commit 84f4e80da1
8 changed files with 93 additions and 111 deletions

View File

@@ -1,10 +1,16 @@
<?php
class AccountType extends Eloquent {
class AccountType extends Eloquent
{
public function accounts() {
public static $factory
= [
'description' => 'string'
];
public function accounts()
{
return $this->hasMany('Account');
}
}