lithium\data\Source::describe()
Gets the column schema for a given entity (such as a database table).
Parameters
-
mixed
$entity
Specifies the table name for which the schema should be returned, or the class name of the model object requesting the schema, in which case the model class will be queried for the correct table name.
-
array
$schema
-
array
$meta
The meta-information for the model class, which this method may use in introspecting the schema.
Returns
arrayReturns a Schema
object describing the given model's schema, where the
array keys are the available fields, and the values are arrays describing each
field, containing the following keys:
'type'
: The field type name
Source
abstract public function describe($entity, $schema = [], array $meta = []);