Some more tests, don't know if they'll cover.

This commit is contained in:
James Cole
2014-07-09 13:35:33 +02:00
parent 84f4e80da1
commit 61f7fbe951
8 changed files with 90 additions and 9 deletions

View File

@@ -14,6 +14,11 @@ class Component extends Firefly\Database\SingleTableInheritanceEntity
protected $table = 'components';
protected $subclassField = 'class';
public static $factory = [
'name' => 'string',
'user_id' => 'factory|User',
];
public function transactions()
{
return $this->belongsToMany('Transaction');