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

@@ -9,6 +9,12 @@ class Preference extends Elegant
'data' => 'required'
];
public static $factory = [
'user_id' => 'factory|User',
'name' => 'string',
'data' => 'string'
];
public function user()
{
return $this->belongsTo('User');