diff --git a/app/models/Data/Callback.php b/app/models/Data/Callback.php index e739302..d28c44d 100644 --- a/app/models/Data/Callback.php +++ b/app/models/Data/Callback.php @@ -216,6 +216,9 @@ class Callback extends Model */ public function initialize() { + // Set table name mapped in the model. + $this->setSource('callback'); + $this->useDynamicUpdate(true); $this->hasMany('id', RequestMeta::class, 'callbackid', array('foreignKey' => true, 'alias' => 'Requests')); @@ -227,16 +230,6 @@ class Callback extends Model ))); } - /** - * Returns table name mapped in the model. - * - * @return string - */ - public function getSource() - { - return 'callback'; - } - public function getRequestPaginator($page = 1, $limit = 30) { return RequestMeta::getPaginator($this, $page, $limit);