This commit is contained in:
Juan Pablo Vial
2023-07-24 20:41:38 -04:00
parent 6ab24c8961
commit be33305cf1
612 changed files with 11436 additions and 107 deletions

View File

@ -0,0 +1,27 @@
<?php
namespace Incoviba\nuevo\Venta;
use Incoviba\Common\Alias\NewModel;
/**
*
* @author Aldarien
* @property int id
* @property Propiedad propiedad_id
* @property Unidad unidad_id
* @property double valor
*
*/
class UnidadPropiedad extends NewModel
{
protected static $_table = 'unidad_propiedades';
public function propiedad()
{
return $this->belongsTo(Propiedad::class, 'propiedad_id')->findOne();
}
public function unidad()
{
return $this->belongsTo(Unidad::class, 'unidad_id')->findOne();
}
}