Mas cambios de controles
This commit is contained in:
@ -315,6 +315,7 @@ class Proyecto extends Model
|
||||
if (!isset($this->estado)) {
|
||||
$id = $this->has_many(EstadoProyecto::class, 'proyecto')->max('id');
|
||||
$this->estado = $this->has_many(EstadoProyecto::class, 'proyecto')->findOne($id);
|
||||
$this->estado->setContainer($this->container);
|
||||
}
|
||||
return $this->estado;
|
||||
}
|
||||
@ -339,6 +340,7 @@ class Proyecto extends Model
|
||||
if (!isset($this->inicio) or $this->inicio == null) {
|
||||
$id = $this->has_many(EstadoProyecto::class, 'proyecto')->min('id');
|
||||
$this->inicio = $this->has_many(EstadoProyecto::class, 'proyecto')->findOne($id);
|
||||
$this->inicio->setContainer($this->container);
|
||||
}
|
||||
return $this->inicio;
|
||||
}
|
||||
|
Reference in New Issue
Block a user