31 lines
764 B
PHP
31 lines
764 B
PHP
<?php
|
|
namespace Contabilidad;
|
|
|
|
use ProVM\Common\Alias\Model;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property Coneccion $coneccion_id
|
|
* @property DateTime $fecha
|
|
* @property TipoEstadoConeccion $tipo_id
|
|
*/
|
|
class EstadoConeccion extends Model {
|
|
public static $_table = 'estados_coneccion';
|
|
protected static $fields = ['coneccion_id', 'fecha', 'tipo_id'];
|
|
|
|
protected $coneccion;
|
|
public function coneccion() {
|
|
if ($this->coneccion === null) {
|
|
$this->coneccion = $this->childOf(Coneccion::class, [Model::SELF_KEY => 'coneccion_id']);
|
|
}
|
|
return $this->coneccion;
|
|
}
|
|
protected $tipo;
|
|
public function tipo() {
|
|
if ($this->tipo === null) {
|
|
$this->tipo = $this->childOf(TipoEstadoConeccion::class, [Model::SELF_KEY => 'tipo_id']);
|
|
}
|
|
return $this->tipo;
|
|
}
|
|
}
|