config
This commit is contained in:
24
app_old/incoviba/modelos/src/nuevo/Common/Region.php
Normal file
24
app_old/incoviba/modelos/src/nuevo/Common/Region.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user