The result will be collection of models, to get an array you can use DAO or QueryBuilder
<hr/>
### Property ClassName.xxx is not defined , what is the problem?
#### Answer:
First of all, actually the error message say all what you need to know!
This is very common error in component configuration, and widget configuration.
This is not a framework issue!
To solve it, you should make sure that the **ClassName** has a field with the name you are trying to use.
This can be a capital letter issue, or just the property aka field not exists in the class...
Read the class reference to see if there is a property that you want to use, or if this is an extension or widget - open the class file, and see if there is the property and you spelled it well
for example if this is the class:
```php
class Foo{
public $bar = 123;
}
```
And you trying to access **Foo.bor** , it not exists there!
See also: [1](http://www.yiiframework.com/forum/index.php?/topic/16190-property-is-not-defined/ "")