UnionOfRAD/lithium — pull request #570 by jails (2012-07-11 12:32:20+00:00)
Title: Refactor Schema Casting close #567 : WARNING BC BREAK

the `DocumentSchema::cast()` 's signature has changed to :

public function cast($object, $key, $data, array $options = array())

If `wrap` is set to true, the `DocumentSchema->cast()` will returns a `Document` or a `DocumentSet` (according to `$data`) instead of returning an array with wrapped fields inside.