Class RelationCheck
Class that provides relation check utility methods
- Model
- AppModel
- BEAppModel
- RelationCheck
Methods summary
public
array
|
#
checkRelation( string $relationName, array & $messageBuffer )
Check relation data consistency for relation $relationName, populating properly $messageBuffer with info about check |
private
|
#
checkTypesForRelation( string $relationName, integer $countRelAllowedTypes, integer $countRelAllTypes, array $allowedTypes, array & $messageBuffer )
check counts consistency for relation data, by types (allowed types by model and all types), populating properly $messageBuffer with info about check |
private
boolean
|
#
checkCounts( string $info, string $relationName, string $relationInverse, integer $countRelation, integer $countInverse, array & $messageBuffer )
verify counts consistency for relation and inverse, populating properly $messageBuffer with info about check |
Methods inherited from BEAppModel
am()
,
buildQueryStatement()
,
checkDate()
,
checkDuration()
,
checkFloat()
,
checkNumber()
,
containLevel()
,
email()
,
fieldsString()
,
findObjects()
,
findObjectsAfterFilter()
,
findObjectsClauses()
,
findObjectsCount()
,
getBindingsLevel()
,
getDefaultDateFormat()
,
getDriver()
,
getEndQuote()
,
getLimitClausole()
,
getStartQuote()
,
setBindingsLevel()
,
setupDbParams()
,
toolbar()