Nuevo models
This commit is contained in:
24
src/nuevo/Common/Direccion.php
Normal file
24
src/nuevo/Common/Direccion.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace Incoviba\nuevo\Common;
|
||||
|
||||
use Incoviba\Common\Alias\NewModel;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Aldarien
|
||||
* @property int id
|
||||
* @property string calle
|
||||
* @property string numero
|
||||
* @property string extra
|
||||
* @property Comuna comuna_id
|
||||
*
|
||||
*/
|
||||
class Direccion extends NewModel
|
||||
{
|
||||
protected static $_table = 'direcciones';
|
||||
|
||||
public function comuna()
|
||||
{
|
||||
return $this->belongs_to(Comuna::class, 'comuna_id')->findOne();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user