JM
Size: a a a
JM
S
JM
S
JM
JM
JM
S
S
JM
S
JM
S
JM
SC
SC
NK
SC
SC
<?php namespace Smitt\Housing\Models;
use Model;
/**
* Model
*/
class Apartments extends Model
{
use \October\Rain\Database\Traits\Validation;
use \October\Rain\Database\Traits\Sortable;
//public $implement = [
// 'Backend.Behaviors.ReorderController',
//];
//public $reorderConfig = 'config_reorder.yaml';
/*
* Disable timestamps by default.
* Remove this line if timestamps are defined in the database table.
*/
public $timestamps = false;
/**
* @var string The database table used by the model.
*/
public $table = 'smitt_housing_apartments';
/**
* @var array Validation rules
*/
public $rules = [
];
//->sortKeys();
protected $jsonable = ['features'];
public $attachMany = [
'images' => 'System\Models\File',
'images_prew' => 'System\Models\File'
];
}
SC