Changed Entity::model() signature. It shuold returns array.