/**
  * Validates all modified columns of given Content object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Content $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Content $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(ContentPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(ContentPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(ContentPeer::CON_LANG)) {
             $columns[ContentPeer::CON_LANG] = $obj->getConLang();
         }
     }
     return BasePeer::doValidate(ContentPeer::DATABASE_NAME, ContentPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given sfGuardUserGroup object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      sfGuardUserGroup $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(sfGuardUserGroup $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(sfGuardUserGroupPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(sfGuardUserGroupPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
     }
     $res = BasePeer::doValidate(sfGuardUserGroupPeer::DATABASE_NAME, sfGuardUserGroupPeer::TABLE_NAME, $columns);
     if ($res !== true) {
         foreach ($res as $failed) {
             $col = sfGuardUserGroupPeer::translateFieldname($failed->getColumn(), BasePeer::TYPE_COLNAME, BasePeer::TYPE_PHPNAME);
         }
     }
     return $res;
 }
 /**
  * Validates all modified columns of given BpmnProject object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      BpmnProject $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(BpmnProject $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(BpmnProjectPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(BpmnProjectPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
     }
     return BasePeer::doValidate(BpmnProjectPeer::DATABASE_NAME, BpmnProjectPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given Articulovariantereorden object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param Articulovariantereorden $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate($obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(ArticulovariantereordenPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(ArticulovariantereordenPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->hasColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
     }
     return BasePeer::doValidate(ArticulovariantereordenPeer::DATABASE_NAME, ArticulovariantereordenPeer::TABLE_NAME, $columns);
 }
Beispiel #5
0
 /**
  * Validates all modified columns of given Step object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Step $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Step $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(StepPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(StepPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(StepPeer::STEP_TYPE_OBJ)) {
             $columns[StepPeer::STEP_TYPE_OBJ] = $obj->getStepTypeObj();
         }
     }
     return BasePeer::doValidate(StepPeer::DATABASE_NAME, StepPeer::TABLE_NAME, $columns);
 }
	/**
	 * Validates all modified columns of given CahierTexteCompteRenduFichierJoint object.
	 * If parameter $columns is either a single column name or an array of column names
	 * than only those columns are validated.
	 *
	 * NOTICE: This does not apply to primary or foreign keys for now.
	 *
	 * @param      CahierTexteCompteRenduFichierJoint $obj The object to validate.
	 * @param      mixed $cols Column name or array of column names.
	 *
	 * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
	 */
	public static function doValidate($obj, $cols = null)
	{
		$columns = array();

		if ($cols) {
			$dbMap = Propel::getDatabaseMap(CahierTexteCompteRenduFichierJointPeer::DATABASE_NAME);
			$tableMap = $dbMap->getTable(CahierTexteCompteRenduFichierJointPeer::TABLE_NAME);

			if (! is_array($cols)) {
				$cols = array($cols);
			}

			foreach ($cols as $colName) {
				if ($tableMap->containsColumn($colName)) {
					$get = 'get' . $tableMap->getColumn($colName)->getPhpName();
					$columns[$colName] = $obj->$get();
				}
			}
		} else {

		}

		return BasePeer::doValidate(CahierTexteCompteRenduFichierJointPeer::DATABASE_NAME, CahierTexteCompteRenduFichierJointPeer::TABLE_NAME, $columns);
	}
 /**
  * Validates all modified columns of given SwimlanesElements object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      SwimlanesElements $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(SwimlanesElements $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(SwimlanesElementsPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(SwimlanesElementsPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(SwimlanesElementsPeer::SWI_UID)) {
             $columns[SwimlanesElementsPeer::SWI_UID] = $obj->getSwiUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(SwimlanesElementsPeer::PRO_UID)) {
             $columns[SwimlanesElementsPeer::PRO_UID] = $obj->getProUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(SwimlanesElementsPeer::SWI_TYPE)) {
             $columns[SwimlanesElementsPeer::SWI_TYPE] = $obj->getSwiType();
         }
     }
     return BasePeer::doValidate(SwimlanesElementsPeer::DATABASE_NAME, SwimlanesElementsPeer::TABLE_NAME, $columns);
 }
    /**
     * Validates all modified columns of given Dynaform object.
     * If parameter $columns is either a single column name or an array of column names
     * than only those columns are validated.
     *
     * NOTICE: This does not apply to primary or foreign keys for now.
     *
     * @param      Dynaform $obj The object to validate.
     * @param      mixed $cols Column name or array of column names.
     *
     * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
     */
    public static function doValidate(Dynaform $obj, $cols = null)
    {
        $columns = array();

        if ($cols) {
            $dbMap = Propel::getDatabaseMap(DynaformPeer::DATABASE_NAME);
            $tableMap = $dbMap->getTable(DynaformPeer::TABLE_NAME);

            if (! is_array($cols)) {
                $cols = array($cols);
            }

            foreach ($cols as $colName) {
                if ($tableMap->containsColumn($colName)) {
                    $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                    $columns[$colName] = $obj->$get();
                }
            }
        } else {

        if ($obj->isNew() || $obj->isColumnModified(DynaformPeer::DYN_TYPE))
            $columns[DynaformPeer::DYN_TYPE] = $obj->getDynType();

        }

        return BasePeer::doValidate(DynaformPeer::DATABASE_NAME, DynaformPeer::TABLE_NAME, $columns);
    }
 /**
  * Validates all modified columns of given AppDelegation object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      AppDelegation $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(AppDelegation $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(AppDelegationPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(AppDelegationPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(AppDelegationPeer::DEL_TYPE)) {
             $columns[AppDelegationPeer::DEL_TYPE] = $obj->getDelType();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDelegationPeer::DEL_PRIORITY)) {
             $columns[AppDelegationPeer::DEL_PRIORITY] = $obj->getDelPriority();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDelegationPeer::DEL_THREAD_STATUS)) {
             $columns[AppDelegationPeer::DEL_THREAD_STATUS] = $obj->getDelThreadStatus();
         }
     }
     return BasePeer::doValidate(AppDelegationPeer::DATABASE_NAME, AppDelegationPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given ReportVar object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      ReportVar $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(ReportVar $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(ReportVarPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(ReportVarPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(ReportVarPeer::REP_VAR_UID)) {
             $columns[ReportVarPeer::REP_VAR_UID] = $obj->getRepVarUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(ReportVarPeer::REP_TAB_UID)) {
             $columns[ReportVarPeer::REP_TAB_UID] = $obj->getRepTabUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(ReportVarPeer::REP_VAR_NAME)) {
             $columns[ReportVarPeer::REP_VAR_NAME] = $obj->getRepVarName();
         }
         if ($obj->isNew() || $obj->isColumnModified(ReportVarPeer::REP_VAR_TYPE)) {
             $columns[ReportVarPeer::REP_VAR_TYPE] = $obj->getRepVarType();
         }
     }
     return BasePeer::doValidate(ReportVarPeer::DATABASE_NAME, ReportVarPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given TimerEvent object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      TimerEvent $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(TimerEvent $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(TimerEventPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(TimerEventPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(TimerEventPeer::TMREVN_OPTION)) {
             $columns[TimerEventPeer::TMREVN_OPTION] = $obj->getTmrevnOption();
         }
         if ($obj->isNew() || $obj->isColumnModified(TimerEventPeer::TMREVN_STATUS)) {
             $columns[TimerEventPeer::TMREVN_STATUS] = $obj->getTmrevnStatus();
         }
     }
     return BasePeer::doValidate(TimerEventPeer::DATABASE_NAME, TimerEventPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given Language object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Language $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Language $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(LanguagePeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(LanguagePeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(LanguagePeer::LAN_DIRECTION)) {
             $columns[LanguagePeer::LAN_DIRECTION] = $obj->getLanDirection();
         }
         if ($obj->isNew() || $obj->isColumnModified(LanguagePeer::LAN_ENABLED)) {
             $columns[LanguagePeer::LAN_ENABLED] = $obj->getLanEnabled();
         }
     }
     return BasePeer::doValidate(LanguagePeer::DATABASE_NAME, LanguagePeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given AppDocument object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      AppDocument $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(AppDocument $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(AppDocumentPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(AppDocumentPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::APP_DOC_UID)) {
             $columns[AppDocumentPeer::APP_DOC_UID] = $obj->getAppDocUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::APP_UID)) {
             $columns[AppDocumentPeer::APP_UID] = $obj->getAppUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::DEL_INDEX)) {
             $columns[AppDocumentPeer::DEL_INDEX] = $obj->getDelIndex();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::DOC_UID)) {
             $columns[AppDocumentPeer::DOC_UID] = $obj->getDocUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::USR_UID)) {
             $columns[AppDocumentPeer::USR_UID] = $obj->getUsrUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::APP_DOC_TYPE)) {
             $columns[AppDocumentPeer::APP_DOC_TYPE] = $obj->getAppDocType();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::APP_DOC_CREATE_DATE)) {
             $columns[AppDocumentPeer::APP_DOC_CREATE_DATE] = $obj->getAppDocCreateDate();
         }
         if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::APP_DOC_STATUS)) {
             $columns[AppDocumentPeer::APP_DOC_STATUS] = $obj->getAppDocStatus();
         }
     }
     return BasePeer::doValidate(AppDocumentPeer::DATABASE_NAME, AppDocumentPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given CaseTracker object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      CaseTracker $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(CaseTracker $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(CaseTrackerPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(CaseTrackerPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(CaseTrackerPeer::PRO_UID)) {
             $columns[CaseTrackerPeer::PRO_UID] = $obj->getProUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(CaseTrackerPeer::CT_MAP_TYPE)) {
             $columns[CaseTrackerPeer::CT_MAP_TYPE] = $obj->getCtMapType();
         }
         if ($obj->isNew() || $obj->isColumnModified(CaseTrackerPeer::CT_DERIVATION_HISTORY)) {
             $columns[CaseTrackerPeer::CT_DERIVATION_HISTORY] = $obj->getCtDerivationHistory();
         }
         if ($obj->isNew() || $obj->isColumnModified(CaseTrackerPeer::CT_MESSAGE_HISTORY)) {
             $columns[CaseTrackerPeer::CT_MESSAGE_HISTORY] = $obj->getCtMessageHistory();
         }
     }
     return BasePeer::doValidate(CaseTrackerPeer::DATABASE_NAME, CaseTrackerPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given TaskUser object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      TaskUser $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(TaskUser $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(TaskUserPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(TaskUserPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(TaskUserPeer::TAS_UID)) {
             $columns[TaskUserPeer::TAS_UID] = $obj->getTasUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskUserPeer::USR_UID)) {
             $columns[TaskUserPeer::USR_UID] = $obj->getUsrUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskUserPeer::TU_TYPE)) {
             $columns[TaskUserPeer::TU_TYPE] = $obj->getTuType();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskUserPeer::TU_RELATION)) {
             $columns[TaskUserPeer::TU_RELATION] = $obj->getTuRelation();
         }
     }
     return BasePeer::doValidate(TaskUserPeer::DATABASE_NAME, TaskUserPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given InputDocument object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      InputDocument $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(InputDocument $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(InputDocumentPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(InputDocumentPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(InputDocumentPeer::INP_DOC_UID)) {
             $columns[InputDocumentPeer::INP_DOC_UID] = $obj->getInpDocUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(InputDocumentPeer::PRO_UID)) {
             $columns[InputDocumentPeer::PRO_UID] = $obj->getProUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(InputDocumentPeer::INP_DOC_FORM_NEEDED)) {
             $columns[InputDocumentPeer::INP_DOC_FORM_NEEDED] = $obj->getInpDocFormNeeded();
         }
         if ($obj->isNew() || $obj->isColumnModified(InputDocumentPeer::INP_DOC_ORIGINAL)) {
             $columns[InputDocumentPeer::INP_DOC_ORIGINAL] = $obj->getInpDocOriginal();
         }
         if ($obj->isNew() || $obj->isColumnModified(InputDocumentPeer::INP_DOC_PUBLISHED)) {
             $columns[InputDocumentPeer::INP_DOC_PUBLISHED] = $obj->getInpDocPublished();
         }
     }
     return BasePeer::doValidate(InputDocumentPeer::DATABASE_NAME, InputDocumentPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given SubProcess object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      SubProcess $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(SubProcess $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(SubProcessPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(SubProcessPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(SubProcessPeer::SP_TYPE)) {
             $columns[SubProcessPeer::SP_TYPE] = $obj->getSpType();
         }
         if ($obj->isNew() || $obj->isColumnModified(SubProcessPeer::SP_SYNCHRONOUS)) {
             $columns[SubProcessPeer::SP_SYNCHRONOUS] = $obj->getSpSynchronous();
         }
         if ($obj->isNew() || $obj->isColumnModified(SubProcessPeer::SP_SYNCHRONOUS_TYPE)) {
             $columns[SubProcessPeer::SP_SYNCHRONOUS_TYPE] = $obj->getSpSynchronousType();
         }
     }
     return BasePeer::doValidate(SubProcessPeer::DATABASE_NAME, SubProcessPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given ObjectPermission object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      ObjectPermission $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(ObjectPermission $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(ObjectPermissionPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(ObjectPermissionPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(ObjectPermissionPeer::OP_UID)) {
             $columns[ObjectPermissionPeer::OP_UID] = $obj->getOpUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(ObjectPermissionPeer::PRO_UID)) {
             $columns[ObjectPermissionPeer::PRO_UID] = $obj->getProUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(ObjectPermissionPeer::TAS_UID)) {
             $columns[ObjectPermissionPeer::TAS_UID] = $obj->getTasUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(ObjectPermissionPeer::USR_UID)) {
             $columns[ObjectPermissionPeer::USR_UID] = $obj->getUsrUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(ObjectPermissionPeer::OP_USER_RELATION)) {
             $columns[ObjectPermissionPeer::OP_USER_RELATION] = $obj->getOpUserRelation();
         }
         if ($obj->isNew() || $obj->isColumnModified(ObjectPermissionPeer::OP_TASK_SOURCE)) {
             $columns[ObjectPermissionPeer::OP_TASK_SOURCE] = $obj->getOpTaskSource();
         }
         if ($obj->isNew() || $obj->isColumnModified(ObjectPermissionPeer::OP_PARTICIPATE)) {
             $columns[ObjectPermissionPeer::OP_PARTICIPATE] = $obj->getOpParticipate();
         }
         if ($obj->isNew() || $obj->isColumnModified(ObjectPermissionPeer::OP_OBJ_TYPE)) {
             $columns[ObjectPermissionPeer::OP_OBJ_TYPE] = $obj->getOpObjType();
         }
         if ($obj->isNew() || $obj->isColumnModified(ObjectPermissionPeer::OP_OBJ_UID)) {
             $columns[ObjectPermissionPeer::OP_OBJ_UID] = $obj->getOpObjUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(ObjectPermissionPeer::OP_ACTION)) {
             $columns[ObjectPermissionPeer::OP_ACTION] = $obj->getOpAction();
         }
     }
     return BasePeer::doValidate(ObjectPermissionPeer::DATABASE_NAME, ObjectPermissionPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given OutputDocument object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      OutputDocument $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(OutputDocument $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(OutputDocumentPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(OutputDocumentPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(OutputDocumentPeer::OUT_DOC_UID)) {
             $columns[OutputDocumentPeer::OUT_DOC_UID] = $obj->getOutDocUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(OutputDocumentPeer::PRO_UID)) {
             $columns[OutputDocumentPeer::PRO_UID] = $obj->getProUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(OutputDocumentPeer::OUT_DOC_GENERATE)) {
             $columns[OutputDocumentPeer::OUT_DOC_GENERATE] = $obj->getOutDocGenerate();
         }
         if ($obj->isNew() || $obj->isColumnModified(OutputDocumentPeer::OUT_DOC_TYPE)) {
             $columns[OutputDocumentPeer::OUT_DOC_TYPE] = $obj->getOutDocType();
         }
     }
     return BasePeer::doValidate(OutputDocumentPeer::DATABASE_NAME, OutputDocumentPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given Translation object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Translation $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Translation $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(TranslationPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(TranslationPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(TranslationPeer::TRN_CATEGORY)) {
             $columns[TranslationPeer::TRN_CATEGORY] = $obj->getTrnCategory();
         }
         if ($obj->isNew() || $obj->isColumnModified(TranslationPeer::TRN_ID)) {
             $columns[TranslationPeer::TRN_ID] = $obj->getTrnId();
         }
         if ($obj->isNew() || $obj->isColumnModified(TranslationPeer::TRN_LANG)) {
             $columns[TranslationPeer::TRN_LANG] = $obj->getTrnLang();
         }
         if ($obj->isNew() || $obj->isColumnModified(TranslationPeer::TRN_VALUE)) {
             $columns[TranslationPeer::TRN_VALUE] = $obj->getTrnValue();
         }
     }
     return BasePeer::doValidate(TranslationPeer::DATABASE_NAME, TranslationPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given ReportTable object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      ReportTable $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(ReportTable $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(ReportTablePeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(ReportTablePeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(ReportTablePeer::REP_TAB_UID)) {
             $columns[ReportTablePeer::REP_TAB_UID] = $obj->getRepTabUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(ReportTablePeer::PRO_UID)) {
             $columns[ReportTablePeer::PRO_UID] = $obj->getProUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(ReportTablePeer::REP_TAB_NAME)) {
             $columns[ReportTablePeer::REP_TAB_NAME] = $obj->getRepTabName();
         }
         if ($obj->isNew() || $obj->isColumnModified(ReportTablePeer::REP_TAB_TYPE)) {
             $columns[ReportTablePeer::REP_TAB_TYPE] = $obj->getRepTabType();
         }
         if ($obj->isNew() || $obj->isColumnModified(ReportTablePeer::REP_TAB_CONNECTION)) {
             $columns[ReportTablePeer::REP_TAB_CONNECTION] = $obj->getRepTabConnection();
         }
         if ($obj->isNew() || $obj->isColumnModified(ReportTablePeer::REP_TAB_STATUS)) {
             $columns[ReportTablePeer::REP_TAB_STATUS] = $obj->getRepTabStatus();
         }
     }
     return BasePeer::doValidate(ReportTablePeer::DATABASE_NAME, ReportTablePeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given Gateway object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Gateway $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Gateway $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(GatewayPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(GatewayPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(GatewayPeer::GAT_UID)) {
             $columns[GatewayPeer::GAT_UID] = $obj->getGatUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(GatewayPeer::PRO_UID)) {
             $columns[GatewayPeer::PRO_UID] = $obj->getProUid();
         }
     }
     return BasePeer::doValidate(GatewayPeer::DATABASE_NAME, GatewayPeer::TABLE_NAME, $columns);
 }
Beispiel #23
0
 /**
  * Validates all modified columns of given Task object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Task $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Task $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(TaskPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(TaskPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_TYPE)) {
             $columns[TaskPeer::TAS_TYPE] = $obj->getTasType();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_TIMEUNIT)) {
             $columns[TaskPeer::TAS_TIMEUNIT] = $obj->getTasTimeunit();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_ALERT)) {
             $columns[TaskPeer::TAS_ALERT] = $obj->getTasAlert();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_ASSIGN_TYPE)) {
             $columns[TaskPeer::TAS_ASSIGN_TYPE] = $obj->getTasAssignType();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_ASSIGN_LOCATION)) {
             $columns[TaskPeer::TAS_ASSIGN_LOCATION] = $obj->getTasAssignLocation();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_ASSIGN_LOCATION_ADHOC)) {
             $columns[TaskPeer::TAS_ASSIGN_LOCATION_ADHOC] = $obj->getTasAssignLocationAdhoc();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_TRANSFER_FLY)) {
             $columns[TaskPeer::TAS_TRANSFER_FLY] = $obj->getTasTransferFly();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_CAN_UPLOAD)) {
             $columns[TaskPeer::TAS_CAN_UPLOAD] = $obj->getTasCanUpload();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_VIEW_UPLOAD)) {
             $columns[TaskPeer::TAS_VIEW_UPLOAD] = $obj->getTasViewUpload();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_VIEW_ADDITIONAL_DOCUMENTATION)) {
             $columns[TaskPeer::TAS_VIEW_ADDITIONAL_DOCUMENTATION] = $obj->getTasViewAdditionalDocumentation();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_CAN_CANCEL)) {
             $columns[TaskPeer::TAS_CAN_CANCEL] = $obj->getTasCanCancel();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_CAN_PAUSE)) {
             $columns[TaskPeer::TAS_CAN_PAUSE] = $obj->getTasCanPause();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_CAN_SEND_MESSAGE)) {
             $columns[TaskPeer::TAS_CAN_SEND_MESSAGE] = $obj->getTasCanSendMessage();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_CAN_DELETE_DOCS)) {
             $columns[TaskPeer::TAS_CAN_DELETE_DOCS] = $obj->getTasCanDeleteDocs();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_SELF_SERVICE)) {
             $columns[TaskPeer::TAS_SELF_SERVICE] = $obj->getTasSelfService();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_START)) {
             $columns[TaskPeer::TAS_START] = $obj->getTasStart();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_TO_LAST_USER)) {
             $columns[TaskPeer::TAS_TO_LAST_USER] = $obj->getTasToLastUser();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_SEND_LAST_EMAIL)) {
             $columns[TaskPeer::TAS_SEND_LAST_EMAIL] = $obj->getTasSendLastEmail();
         }
         if ($obj->isNew() || $obj->isColumnModified(TaskPeer::TAS_DERIVATION)) {
             $columns[TaskPeer::TAS_DERIVATION] = $obj->getTasDerivation();
         }
     }
     return BasePeer::doValidate(TaskPeer::DATABASE_NAME, TaskPeer::TABLE_NAME, $columns);
 }
Beispiel #24
0
 /**
  * Validates all modified columns of given Process object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Process $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Process $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(ProcessPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(ProcessPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(ProcessPeer::PRO_TIMEUNIT)) {
             $columns[ProcessPeer::PRO_TIMEUNIT] = $obj->getProTimeunit();
         }
         if ($obj->isNew() || $obj->isColumnModified(ProcessPeer::PRO_STATUS)) {
             $columns[ProcessPeer::PRO_STATUS] = $obj->getProStatus();
         }
         if ($obj->isNew() || $obj->isColumnModified(ProcessPeer::PRO_TYPE)) {
             $columns[ProcessPeer::PRO_TYPE] = $obj->getProType();
         }
         if ($obj->isNew() || $obj->isColumnModified(ProcessPeer::PRO_ASSIGNMENT)) {
             $columns[ProcessPeer::PRO_ASSIGNMENT] = $obj->getProAssignment();
         }
     }
     return BasePeer::doValidate(ProcessPeer::DATABASE_NAME, ProcessPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given Route object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Route $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Route $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(RoutePeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(RoutePeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(RoutePeer::ROU_UID)) {
             $columns[RoutePeer::ROU_UID] = $obj->getRouUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(RoutePeer::PRO_UID)) {
             $columns[RoutePeer::PRO_UID] = $obj->getProUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(RoutePeer::TAS_UID)) {
             $columns[RoutePeer::TAS_UID] = $obj->getTasUid();
         }
         if ($obj->isNew() || $obj->isColumnModified(RoutePeer::ROU_NEXT_TASK)) {
             $columns[RoutePeer::ROU_NEXT_TASK] = $obj->getRouNextTask();
         }
         if ($obj->isNew() || $obj->isColumnModified(RoutePeer::ROU_TYPE)) {
             $columns[RoutePeer::ROU_TYPE] = $obj->getRouType();
         }
         if ($obj->isNew() || $obj->isColumnModified(RoutePeer::ROU_DEFAULT)) {
             $columns[RoutePeer::ROU_DEFAULT] = $obj->getRouDefault();
         }
         if ($obj->isNew() || $obj->isColumnModified(RoutePeer::ROU_TO_LAST_USER)) {
             $columns[RoutePeer::ROU_TO_LAST_USER] = $obj->getRouToLastUser();
         }
         if ($obj->isNew() || $obj->isColumnModified(RoutePeer::ROU_OPTIONAL)) {
             $columns[RoutePeer::ROU_OPTIONAL] = $obj->getRouOptional();
         }
         if ($obj->isNew() || $obj->isColumnModified(RoutePeer::ROU_SEND_EMAIL)) {
             $columns[RoutePeer::ROU_SEND_EMAIL] = $obj->getRouSendEmail();
         }
     }
     return BasePeer::doValidate(RoutePeer::DATABASE_NAME, RoutePeer::TABLE_NAME, $columns);
 }
	/**
	 * Validates all modified columns of given PreferenceUtilisateurProfessionnel object.
	 * If parameter $columns is either a single column name or an array of column names
	 * than only those columns are validated.
	 *
	 * NOTICE: This does not apply to primary or foreign keys for now.
	 *
	 * @param      PreferenceUtilisateurProfessionnel $obj The object to validate.
	 * @param      mixed $cols Column name or array of column names.
	 *
	 * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
	 */
	public static function doValidate($obj, $cols = null)
	{
		$columns = array();

		if ($cols) {
			$dbMap = Propel::getDatabaseMap(PreferenceUtilisateurProfessionnelPeer::DATABASE_NAME);
			$tableMap = $dbMap->getTable(PreferenceUtilisateurProfessionnelPeer::TABLE_NAME);

			if (! is_array($cols)) {
				$cols = array($cols);
			}

			foreach ($cols as $colName) {
				if ($tableMap->containsColumn($colName)) {
					$get = 'get' . $tableMap->getColumn($colName)->getPhpName();
					$columns[$colName] = $obj->$get();
				}
			}
		} else {

		}

		return BasePeer::doValidate(PreferenceUtilisateurProfessionnelPeer::DATABASE_NAME, PreferenceUtilisateurProfessionnelPeer::TABLE_NAME, $columns);
	}
Beispiel #27
0
 /**
  * Validates all modified columns of given Application object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      Application $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(Application $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(ApplicationPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(ApplicationPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(ApplicationPeer::APP_STATUS)) {
             $columns[ApplicationPeer::APP_STATUS] = $obj->getAppStatus();
         }
     }
     return BasePeer::doValidate(ApplicationPeer::DATABASE_NAME, ApplicationPeer::TABLE_NAME, $columns);
 }
 /**
  * Validates all modified columns of given CalendarBusinessHours object.
  * If parameter $columns is either a single column name or an array of column names
  * than only those columns are validated.
  *
  * NOTICE: This does not apply to primary or foreign keys for now.
  *
  * @param      CalendarBusinessHours $obj The object to validate.
  * @param      mixed $cols Column name or array of column names.
  *
  * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
  */
 public static function doValidate(CalendarBusinessHours $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(CalendarBusinessHoursPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(CalendarBusinessHoursPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
         if ($obj->isNew() || $obj->isColumnModified(CalendarBusinessHoursPeer::CALENDAR_BUSINESS_DAY)) {
             $columns[CalendarBusinessHoursPeer::CALENDAR_BUSINESS_DAY] = $obj->getCalendarBusinessDay();
         }
     }
     return BasePeer::doValidate(CalendarBusinessHoursPeer::DATABASE_NAME, CalendarBusinessHoursPeer::TABLE_NAME, $columns);
 }
 public static function doValidate(Lorfields $obj, $cols = null)
 {
     $columns = array();
     if ($cols) {
         $dbMap = Propel::getDatabaseMap(LorfieldsPeer::DATABASE_NAME);
         $tableMap = $dbMap->getTable(LorfieldsPeer::TABLE_NAME);
         if (!is_array($cols)) {
             $cols = array($cols);
         }
         foreach ($cols as $colName) {
             if ($tableMap->containsColumn($colName)) {
                 $get = 'get' . $tableMap->getColumn($colName)->getPhpName();
                 $columns[$colName] = $obj->{$get}();
             }
         }
     } else {
     }
     $res = BasePeer::doValidate(LorfieldsPeer::DATABASE_NAME, LorfieldsPeer::TABLE_NAME, $columns);
     if ($res !== true) {
         $request = sfContext::getInstance()->getRequest();
         foreach ($res as $failed) {
             $col = LorfieldsPeer::translateFieldname($failed->getColumn(), BasePeer::TYPE_COLNAME, BasePeer::TYPE_PHPNAME);
             $request->setError($col, $failed->getMessage());
         }
     }
     return $res;
 }
	/**
	 * Validates all modified columns of given AbsenceEleveTypeStatutAutorise object.
	 * If parameter $columns is either a single column name or an array of column names
	 * than only those columns are validated.
	 *
	 * NOTICE: This does not apply to primary or foreign keys for now.
	 *
	 * @param      AbsenceEleveTypeStatutAutorise $obj The object to validate.
	 * @param      mixed $cols Column name or array of column names.
	 *
	 * @return     mixed TRUE if all columns are valid or the error message of the first invalid column.
	 */
	public static function doValidate($obj, $cols = null)
	{
		$columns = array();

		if ($cols) {
			$dbMap = Propel::getDatabaseMap(AbsenceEleveTypeStatutAutorisePeer::DATABASE_NAME);
			$tableMap = $dbMap->getTable(AbsenceEleveTypeStatutAutorisePeer::TABLE_NAME);

			if (! is_array($cols)) {
				$cols = array($cols);
			}

			foreach ($cols as $colName) {
				if ($tableMap->containsColumn($colName)) {
					$get = 'get' . $tableMap->getColumn($colName)->getPhpName();
					$columns[$colName] = $obj->$get();
				}
			}
		} else {

		}

		return BasePeer::doValidate(AbsenceEleveTypeStatutAutorisePeer::DATABASE_NAME, AbsenceEleveTypeStatutAutorisePeer::TABLE_NAME, $columns);
	}