app/models/Data/Callback.php: Cant override getSource() anymore as it is marked final, set source in "initialize()" instead.
This commit is contained in:
parent
d03824518d
commit
1867351716
1 changed files with 3 additions and 10 deletions
|
|
@ -216,6 +216,9 @@ class Callback extends Model
|
||||||
*/
|
*/
|
||||||
public function initialize()
|
public function initialize()
|
||||||
{
|
{
|
||||||
|
// Set table name mapped in the model.
|
||||||
|
$this->setSource('callback');
|
||||||
|
|
||||||
$this->useDynamicUpdate(true);
|
$this->useDynamicUpdate(true);
|
||||||
|
|
||||||
$this->hasMany('id', RequestMeta::class, 'callbackid', array('foreignKey' => true, 'alias' => 'Requests'));
|
$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)
|
public function getRequestPaginator($page = 1, $limit = 30)
|
||||||
{
|
{
|
||||||
return RequestMeta::getPaginator($this, $page, $limit);
|
return RequestMeta::getPaginator($this, $page, $limit);
|
||||||
|
|
|
||||||
Reference in a new issue