Model fixes

This commit is contained in:
Graham Campbell
2015-01-04 13:39:34 +00:00
parent c025946aa8
commit 5370c1b68e
3 changed files with 3 additions and 10 deletions

View File

@@ -25,19 +25,12 @@ class User extends Model implements UserInterface, RemindableInterface
{
use UserTrait, RemindableTrait;
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'users';
/**
* The hidden properties.
*
* These are excluded when we are serializing the model.
*
* @var array
* @var string[]
*/
protected $hidden = ['password', 'remember_token'];

View File

@@ -35,7 +35,7 @@ class WebHook extends Model
*/
public function response()
{
return $this->hasMany('WebHookContent', 'hook_id', 'id');
return $this->hasMany('CachetHQ\Cachet\Models\WebHookContent', 'hook_id', 'id');
}
/**

View File

@@ -25,6 +25,6 @@ class WebHookResponse extends Model
*/
public function hook()
{
return $this->belongsTo('WebHook', 'id', 'hook_id');
return $this->belongsTo('CachetHQ\Cachet\Models\WebHook', 'id', 'hook_id');
}
}