update 1.0.8.0
Commits for version update
This commit is contained in:
@@ -12,4 +12,13 @@ class User_org extends BaseModel
|
||||
|
||||
/* define fillable fields */
|
||||
protected $fillable = ['id', 'org_id', 'user_id'];
|
||||
|
||||
public function setOrgIdAttribute($value)
|
||||
{
|
||||
if ($value == '') {
|
||||
$this->attributes['org_id'] = null;
|
||||
} else {
|
||||
$this->attributes['org_id'] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user