public function delete(PropelPDO $con = null, $definitivo = false) { if ($definitivo) { $this->initMensajeDestinos(); parent::delete(); } else { $this->setBorrado(true); $this->save(); } }
/** * Returns a peer instance associated with this om. * * Since Peer classes are not to have any instance attributes, this method returns the * same instance for all member of this class. The method could therefore * be static, but this would prevent one from overriding the behavior. * * @return MensajePeer */ public function getPeer() { if (self::$peer === null) { self::$peer = new MensajePeer(); } return self::$peer; }
public function attributeLabels() { return array_merge(parent::attributeLabels(), array('user_emisor' => Yii::t('app', 'Emisor'), 'user_receptor' => Yii::t('app', 'Receptor'), 'fecha_inicio' => Yii::t('app', 'fecha_inicio'), 'fecha_termino' => Yii::t('app', 'fecha_termino'))); }