2014-07-05 12:44:26 -05:00
|
|
|
<?php
|
|
|
|
|
2014-07-15 15:16:29 -05:00
|
|
|
/**
|
|
|
|
* Category
|
|
|
|
*
|
2014-11-12 15:37:44 -06:00
|
|
|
* @property integer $id
|
|
|
|
* @property \Carbon\Carbon $created_at
|
|
|
|
* @property \Carbon\Carbon $updated_at
|
|
|
|
* @property string $name
|
|
|
|
* @property integer $user_id
|
|
|
|
* @property string $class
|
2014-07-15 15:16:29 -05:00
|
|
|
* @property-read \Illuminate\Database\Eloquent\Collection|\TransactionJournal[] $transactionjournals
|
2014-11-12 15:37:44 -06:00
|
|
|
* @property-read \Illuminate\Database\Eloquent\Collection|\Limit[] $limits
|
|
|
|
* @property-read \Illuminate\Database\Eloquent\Collection|\Transaction[] $transactions
|
|
|
|
* @property-read \User $user
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Category whereId($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Category whereCreatedAt($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Category whereUpdatedAt($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Category whereName($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Category whereUserId($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Category whereClass($value)
|
2014-07-15 15:16:29 -05:00
|
|
|
*/
|
2014-07-05 12:44:26 -05:00
|
|
|
class Category extends Component
|
|
|
|
{
|
|
|
|
protected $isSubclass = true;
|
2014-07-30 07:45:46 -05:00
|
|
|
|
2014-08-10 11:22:42 -05:00
|
|
|
/**
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
|
|
|
*/
|
2014-07-30 07:45:46 -05:00
|
|
|
public function transactionjournals()
|
|
|
|
{
|
|
|
|
return $this->belongsToMany('TransactionJournal', 'component_transaction_journal', 'component_id');
|
|
|
|
}
|
2014-07-05 12:44:26 -05:00
|
|
|
}
|