Delete an object by ID.
query context with which to perform the deletion
the field in the object that is the ID
the value of the ID field in the object
Protected
deleteFetch many objects matching the conjunction of where clauses constructed from specified field equality operands.
query context with which to perform the fetch
list of field equality where clause operand specifications
limit, offset, orderBy, and orderByRaw for the query
array of objects matching the query
Protected
fetchFetch many objects matching the raw WHERE clause.
query context with which to perform the fetch
parameterized SQL WHERE clause with positional binding placeholders or named binding placeholders
array of positional bindings or object of named bindings
limit, offset, and orderBy for the query
array of objects matching the query
Protected
fetchFetch many objects where fieldName is one of fieldValues.
query context with which to perform the fetch
object field being queried
fieldName field values being queried
map from fieldValue to objects that match the query for that fieldValue
Protected
fetchProtected
getTransformer definitions for field types. Used to modify values as they are read from or written to the database. Override in concrete subclasses to change transformation behavior. If a field type is not present in the map, then fields of that type will not be transformed.
Insert an object.
query context with which to perform the insert
the object to insert
the inserted object
Protected
insertUpdate an object.
query context with which to perform the update
the field in the object that is the ID
the value of the ID field in the object
the object to update
the updated object
Protected
updateStatic
convert
A database adapter is an interface by which entity objects can be fetched, inserted, updated, and deleted from a database. This base class handles all entity field transformation. Subclasses are responsible for implementing database-specific logic for a type of database.