firefly-iii/app/Models/AccountMeta.php
2015-02-06 05:35:00 +01:00

25 lines
429 B
PHP

<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class AccountMeta extends Model
{
public function account()
{
return $this->belongsTo('FireflyIII\Models\Account');
}
public function getDataAttribute($value)
{
return json_decode($value);
}
public function setDataAttribute($value)
{
$this->attributes['data'] = json_encode($value);
}
}