Hey,
I'm just creating a "load test data" function for my Symfony project.
I have 3 YML files of data,
* Constant data global to any environment, e.g. content states, etc.
* Test data used in development
* Live data used in production
My "load test data" function runs,
$data = new sfPropelData();
$data->loadData(sfConfig::get('sf_data_dir')."/model/
constant_data.yml", "con");
$data->loadData(sfConfig::get('sf_data_dir')."/model/test_data.yml",
"con");
The problem I'm having is that data in "test_data" references objects
created in "constant_data", and it seems you can't do this, hence my
error,
"The object "active" from class "AdminUserState" is not defined in
your data file."
I even tried loading "test_data" only and at the top of that file
doing a PHP include for the constant_data, but I got the same error.
Does anyone know how to fix my problem or am I doomed to having 1 YML
file and duplicated data?
Thanks,
Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---