abstract public method

Gets the column schema for a given entity (such as a database table).


  • 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 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


	abstract public function describe($entity, $schema = [], array $meta = []);