<?php
class Zeit extends CActiveRecord
{
public customerID;
public safeAttributes()
{
return array('customerID', ...); // list of all db columns
}
}
I need this customerID as i have a dropdown with customers that are not directly related to this AR. The dropdown value should be kept e.g. on unsuccessful validation. This works. But i also want to store the AR in session when saving, and restore the attributes from this session object, to pre-fill form values on return to the page.
If i use getAttributes(true), customerID is missing from the list of attributes. Am i missing something?

Help
This topic is locked












