Migration to 1.1.3 issue

Hello eveyone.

Recently I updated framework to last version 1.1.3 and find out that some of things in my application are ot working now.

I have the CActiveRecord model and I extend it with my custom public fields, which I do not need to store in DB, but they are needed as fields in returned object;

After update to 1.1.3 version, for example, method findAllByPk returns array of models which have only collumn names as fields and have no public properties.

Does somebody have the same issue?


Could you provide a reduced test case?

Hi, I figured out that problem is in CJSON::encode($data);

Model Video.php

class Video extends CActiveRecord


	public $my_property = 'some value';


	public static function model($className=__CLASS__)


		return parent::model($className);


	public function tableName()


		return 'videos';



Then in my controller’s method:

$data = Video::model()->findAllByPk(array(1,2));

echo CJSON::encode($data);

Result now is


So no public property my_property, only table fields, but it was here in 1.1.2


Thank you!