I think this covers everything.

This commit is contained in:
James Cole
2014-08-10 09:57:30 +02:00
parent 8eeadffdeb
commit 941ff99373
4 changed files with 232 additions and 16 deletions

View File

@@ -96,7 +96,7 @@ class RecurringTransaction extends Ardent
$start->addMonths($skip * 6);
break;
case 'yearly':
$this->addYears($skip);
$start->addYears($skip);
break;
}

View File

@@ -1,5 +1,6 @@
<?php
use LaravelBook\Ardent\Ardent;
/**
* TransactionType
@@ -14,16 +15,16 @@
* @method static \Illuminate\Database\Query\Builder|\TransactionType whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|\TransactionType whereType($value)
*/
class TransactionType extends Eloquent
class TransactionType extends Ardent
{
public function transactionJournals()
{
return $this->hasMany('TransactionJournal');
}
public static $factory
= [
'type' => 'string'
];
public function transactionJournals()
{
return $this->hasMany('TransactionJournal');
}
}

View File

@@ -91,11 +91,6 @@ class User extends Ardent implements UserInterface, RemindableInterface
return $this->hasMany('Component');
}
public function piggybanks()
{
return $this->hasMany('Piggybank');
}
public function preferences()
{
return $this->hasMany('Preference');