for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gewaer\Models;
class UsersAssociatedCompany extends \Baka\Auth\Models\UsersAssociatedCompany
{
/**
*
* @var integer
*/
public $users_id;
public $companies_id;
* @var string
public $identify_id;
public $user_active;
public $user_role;
* Initialize method for model.
public function initialize()
parent::initialize();
$this->belongsTo(
'companies_id',
'Gewaer\Models\Companies',
'id',
['alias' => 'company']
);
$this->setSource('users_associated_company');
}
* Returns table name mapped in the model.
* @return string
public function getSource(): string
return 'users_associated_company';