UnionOfRAD/lithium — Issue #260: Model::schema() - bug or documentation error
Author: d1rk
Created: 2012-01-11 14:21:39+00:00
State: open

In the documentation of model::schema() it says:

* @param mixed $field Optional. You may pass a field name to get schema information for just
* one field. Otherwise, an array containing all fields is returned. If `false`, the
* schema is reset to an empty value. If an array, field definitions contained are
* appended to the schema.

The code does not seem to check for array as type, and therefore it does not append any schema to $_schema, but returns the current schema instead.