25 lines
438 B
PHP
25 lines
438 B
PHP
|
<?php
|
||
|
namespace Incoviba\nuevo\Common;
|
||
|
|
||
|
use Incoviba\Common\Alias\NewModel;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author Aldarien
|
||
|
* @property int id
|
||
|
* @property string descripcion
|
||
|
* @property string nombre
|
||
|
* @property string numeral
|
||
|
* @property int orden
|
||
|
*
|
||
|
*/
|
||
|
class Region extends NewModel
|
||
|
{
|
||
|
protected static $_table = 'regiones';
|
||
|
|
||
|
public function provincias()
|
||
|
{
|
||
|
return $this->has_many(Provincia::class, 'region_id')->findMany();
|
||
|
}
|
||
|
}
|