mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-25 08:21:08 -06:00
Update references
This commit is contained in:
parent
57691471bb
commit
ddc3e82c14
@ -7,8 +7,22 @@ use Illuminate\Database\Eloquent\Model;
|
||||
*
|
||||
* @package FireflyIII\Models
|
||||
*/
|
||||
class Account extends Model {
|
||||
class Account extends Model
|
||||
{
|
||||
|
||||
//
|
||||
public function accountMeta()
|
||||
{
|
||||
return $this->hasMany('AccountMeta');
|
||||
}
|
||||
|
||||
public function accountType()
|
||||
{
|
||||
return $this->belongsTo('AccountType');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('User');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,23 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AccountMeta extends Model {
|
||||
class AccountMeta extends Model
|
||||
{
|
||||
|
||||
//
|
||||
public function account()
|
||||
{
|
||||
return $this->belongsTo('Account');
|
||||
}
|
||||
|
||||
|
||||
public function getDataAttribute($value)
|
||||
{
|
||||
return json_decode($value);
|
||||
}
|
||||
|
||||
public function setDataAttribute($value)
|
||||
{
|
||||
$this->attributes['data'] = json_encode($value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,12 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AccountType extends Model {
|
||||
|
||||
//
|
||||
class AccountType extends Model
|
||||
{
|
||||
|
||||
//
|
||||
public function accounts()
|
||||
{
|
||||
return $this->hasMany('Account');
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Bill extends Model {
|
||||
class Bill extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Budget extends Model {
|
||||
class Budget extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class BudgetLimit extends Model {
|
||||
class BudgetLimit extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Category extends Model {
|
||||
class Category extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Component extends Model {
|
||||
class Component extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class LimitRepetition extends Model {
|
||||
class LimitRepetition extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PiggyBank extends Model {
|
||||
class PiggyBank extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PiggyBankEvent extends Model {
|
||||
class PiggyBankEvent extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PiggyBankRepetition extends Model {
|
||||
class PiggyBankRepetition extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Preference extends Model {
|
||||
class Preference extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Reminder extends Model {
|
||||
class Reminder extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Transaction extends Model {
|
||||
class Transaction extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TransactionCurrency extends Model {
|
||||
class TransactionCurrency extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TransactionGroup extends Model {
|
||||
class TransactionGroup extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TransactionJournal extends Model {
|
||||
class TransactionJournal extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TransactionRelation extends Model {
|
||||
class TransactionRelation extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TransactionType extends Model {
|
||||
class TransactionType extends Model
|
||||
{
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
@ -1,37 +1,41 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Auth\Authenticatable;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Auth\Passwords\CanResetPassword;
|
||||
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
|
||||
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class User extends Model implements AuthenticatableContract, CanResetPasswordContract {
|
||||
class User extends Model implements AuthenticatableContract, CanResetPasswordContract
|
||||
{
|
||||
|
||||
use Authenticatable, CanResetPassword;
|
||||
use Authenticatable, CanResetPassword;
|
||||
|
||||
/**
|
||||
* The database table used by the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'users';
|
||||
/**
|
||||
* The database table used by the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'users';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['name', 'email', 'password'];
|
||||
|
||||
/**
|
||||
* The attributes excluded from the model's JSON form.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = ['password', 'remember_token'];
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['name', 'email', 'password'];
|
||||
|
||||
/**
|
||||
* The attributes excluded from the model's JSON form.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = ['password', 'remember_token'];
|
||||
|
||||
|
||||
public function accounts()
|
||||
{
|
||||
return $this->hasMany('Account');
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user