Find All

Is there is any problem with this query.

Employer::model()->findAll('log IS NOT NULL');

Seems fine to me. Is it not working correctly?

Thank you Keith for your replay

I have solved.

Employer::model()->findAll(array("condition" => "logo IS NOT NULL"));

study this link for details about model()->find


How to Fetch selected Attribute from relation tables foreign key defined in particular table?

Well you can also use CDbCriteria here to fetch relational data else try to read this article thoroughly so you can get better idea how to fetch relational records.

Use this link also. This is what which will help you.