Nuevo models
This commit is contained in:
26
src/nuevo/Venta/EstadoCierre.php
Normal file
26
src/nuevo/Venta/EstadoCierre.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace Incoviba\nuevo\Venta;
|
||||
|
||||
use Incoviba\Common\Alias\NewEstado;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Aldarien
|
||||
* @property Cierre $cierre_id
|
||||
* @property TipoEstadoCierre $estado_id
|
||||
*
|
||||
*/
|
||||
class EstadoCierre extends NewEstado
|
||||
{
|
||||
protected static $_table = 'estado_cierres';
|
||||
|
||||
public function cierre()
|
||||
{
|
||||
return $this->belongsTo(Cierre::class)->findOne();
|
||||
}
|
||||
public function estado()
|
||||
{
|
||||
return $this->belongsTo(TipoEstadoCierre::class)->findOne();
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user