Class CRUDMySQLData
MySQL CRUDData implementation using a given Doctrine DBAL instance.
- CRUDlex\CRUDData
-
CRUDlex\CRUDMySQLData
protected
boolean
|
|
public
|
#
__construct(
Constructor. |
public
|
|
public
array
|
#
listEntries( array $filter = array(), array $filterOperators = array(), integer $skip = null, integer $amount = null )
Gets a list of entities fullfilling the given filter or all if no selection was given. |
public
|
|
public
|
#
update(
Updates an existing entry in the datasource having the same id. |
public
boolean
|
|
public
array
|
#
getReferences( string $table, string $nameField )
Gets ids and names of a table. Used for building up the dropdown box of reference type fields. |
public
integer
|
#
countBy( string $table, array $params, array $paramsOperators, boolean $excludeDeleted )
Retrieves the amount of entities in the datasource fulfilling the given parameters. |
public
|
#
fetchReferences( array & $entities = null )
Adds the id and name of referenced entities to the given entities. Each reference field is before the raw id of the referenced entity and after the fetch, it's an array with the keys id and name. |
createEmpty(),
createFiles(),
deleteFile(),
deleteFiles(),
getDefinition(),
hydrate(),
renderFile(),
updateFiles()
|
protected
|
$db
Holds the Doctrine DBAL instance. |
$definition,
$fileProcessor
|