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 FileSystem extends AbstractModel
{
/**
*
* @var integer
*/
public $id;
public $companies_id;
public $apps_id;
public $users_id;
public $system_modules_id;
public $entity_id;
* @var string
public $name;
public $path;
public $url;
public $size;
public $created_at;
public $updated_at;
* @var int
public $is_deleted;
* Initialize method for model.
public function initialize()
$this->setSource('filesystem');
$this->belongsTo(
'apps_id',
'Gewaer\Models\Apps',
'id',
['alias' => 'app']
);
'users_id',
'Gewaer\Models\Users',
['alias' => 'user']
'companies_id',
'Gewaer\Models\Companies',
['alias' => 'company']
'system_modules_id',
'Gewaer\Models\SystemModules',
['alias' => 'systemModules']
}
* Returns table name mapped in the model.
* @return string
public function getSource() : string
return 'filesystem';