/** * Remove All Fields Conditions from an array of Field Conditions and Dynaforms, * from the arrays data. * * @param $aDynaform array * @return void */ public function removeAllFieldCondition ($aDynaform) { foreach ($aDynaform as $key => $row) { $oCriteria = new Criteria(); $oCriteria->add( FieldConditionPeer::FCD_DYN_UID, $row['DYN_UID'] ); FieldConditionPeer::doDelete( $oCriteria ); } }
/** * Removes this object from datastore and sets delete attribute. * * @param Connection $con * @return void * @throws PropelException * @see BaseObject::setDeleted() * @see BaseObject::isDeleted() */ public function delete($con = null) { if ($this->isDeleted()) { throw new PropelException("This object has already been deleted."); } if ($con === null) { $con = Propel::getConnection(FieldConditionPeer::DATABASE_NAME); } try { $con->begin(); FieldConditionPeer::doDelete($this, $con); $this->setDeleted(true); $con->commit(); } catch (PropelException $e) { $con->rollback(); throw $e; } }