LudoDBUtility class with development methods for manipulation of database tables.
package | LudoDB |
---|---|
author | Alf Magne Kalleland |
createDatabaseTables(array $classNames)
$classNames is an array of valid LudoDBModel class names.
array
dropAndCreate(array $classNames)
This method is useful during development since it will check table references(defined in config) and drop and create the tables in the right order
array
dropDatabaseTables(array $classNames)
array
getAllAvailableServices()
getTableDefinition($className)
validateConfigsOf(array $classNames)
array
getClassesRearranged(array $classNames) : array
array
array
getLudoDBModelTables(array $classNames) : array
array
array
getReferencedTables(\LudoDBModel $model) : array
getTableNames($classNames) : array
array
withDuplicatesRemoved(array $classNames) : array
classes using the same database table.
array
array
$instances : array