UnionOfRAD/lithium — pull request #746 by jails (2012-12-17 20:25:05+00:00)
Title: Warning BC Break: `data\Model::_classes` and `data\Model_autoConfig` are no more static

Unlike all other variables in `data\Model_autoConfig`, `data\Model::_classes` is the only static one. I don't really understand this inconsistency.
Moreover this specificity forces us to redefine all entries in model `_classes` when some custom dependencies is needed.

With with PR you can write:
```php
class MyModel extends \lithium\data\Model {
protected $_classes = array(
'custom' => 'my/custom/Class'
);
}
```

Instead of:

```php
class MyModel extends \lithium\data\Model {
protected static $_classes = array(
'connections' => 'lithium\data\Connections',
'query' => 'lithium\data\model\Query',
'validator' => 'lithium\util\Validator',
'entity' => 'lithium\data\Entity'
'custom' => 'my/custom/Class'
);
}
```

when you need a custom dependency.