How can I set an application component property to be an array of objects from within the main.cpp config file?
in the components section of main.php config file we have a section:
'components' => array(
....
'company' => array(
'class' => 'application.components.Company',
'employees' => array(
'class' => 'application.components.Employee'
)
)
);
but the $company->employees property is just being set to 'application.components.Employee' .. I would have expected it to be equal to array( new Employee) (ie an Employee object within an array) .
Any knowledge on this matter?