Nuevo models
This commit is contained in:
22
src/nuevo/Proyecto/Etapa.php
Normal file
22
src/nuevo/Proyecto/Etapa.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
namespace Incoviba\nuevo\Proyecto;
|
||||
|
||||
use Incoviba\Common\Alias\NewModel;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Aldarien
|
||||
* @property int id
|
||||
* @property string descripcion
|
||||
* @property int orden
|
||||
*
|
||||
*/
|
||||
class Etapa extends NewModel
|
||||
{
|
||||
protected static $_table = 'etapas';
|
||||
|
||||
public function tipos()
|
||||
{
|
||||
return $this->hasMany(TipoEstadoProyecto::class, 'etapa_id')->findMany();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user