Nuevo models

This commit is contained in:
2019-12-23 18:01:36 -03:00
parent f67ab72e2a
commit eeb725200a
67 changed files with 2171 additions and 0 deletions

View 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();
}
}