for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Canvas\Models;
class RolesInherits extends AbstractModel
{
/**
*
* @var integer
*/
public $roles_id;
public $roles_inherit;
* Initialize method for model.
public function initialize()
$this->setSource('roles_inherits');
$this->belongsTo(
'roles_id',
'Canvas\Models\Roles',
'id',
['alias' => 'role']
);
}
* Returns table name mapped in the model.
* @return string
public function getSource(): string
return 'roles_inherits';