select table custom column

i have Active record class with relations




.............

public function relations()

	{

		// NOTE: you may need to adjust the relation name and the related

		// class name for the relations automatically generated below.

		return array(

        	.............

			'rtFieldsShowIn' => array(self::HAS_MANY, 'RtFieldsShowIn', 'rt_cv_fields_id',

            	'select'=>'*,rtFieldsShowIn.show + 0 as show_d'),

		);

	}

..............



finding all elements with “->with(‘rtFieldsShowIn’)->findAll()”

how i can access select column show_d from my active record?

when i am making getAttributes() there is no show_d column.

Try:


$result->rtFieldsShowIn()->show_d;

result is:

Property "RtFieldsShowIn.show_d" is not defined.

there an array of rtFieldsShowIn so i accessing data




$list->rtFieldsShowIn[0]->show_d



and i can’t access show_d