This commit is contained in:
2021-11-30 18:04:41 -03:00
parent 87323b22d8
commit f589ff960b
56 changed files with 1960 additions and 0 deletions

24
src/Common/Direccion.php Normal file
View File

@ -0,0 +1,24 @@
<?php
namespace Incoviba\Common;
use Incoviba\API\Common\Alias\Model;
/**
* @property int $id
* @property string $calle
* @property int $numero
* @property string $extra
* @property Comuna $comuna
*/
class Direccion extends Model {
public static $_table = 'direccion';
protected static $fields = ['calle', 'numero', 'extra', 'comuna'];
protected ?Comuna $comuna_o;
public function comuna(): ?Comuna {
if ($this->comuna_o === null) {
$this->comuna_o = $this->childOf(Comuna::class, [Model::SELF_KEY => 'comuna']);
}
return $this->comuna_o;
}
}