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 CustomFieldsModules extends AbstractModel
{
/**
*
* @var integer
*/
public $id;
public $apps_id;
* @var string
public $name;
public $is_deleted;
public $created_at;
public $updated_at;
* Initialize method for model.
public function initialize()
$this->setSource('custom_fields_modules');
$this->belongsTo(
'companies_id',
'Gewaer\Models\Companies',
'id',
['alias' => 'company']
);
$this->hasMany(
'Gewaer\CustomFields\CustomFields',
'custom_fields_modules_id',
['alias' => 'fields']
// $this->belongsTo(
// 'apps_id',
// 'Gewaer\Models\Apps',
// 'id',
// ['alias' => 'app']
// );
}
* Returns table name mapped in the model.
* @return string
public function getSource(): string
return 'custom_fields_modules';