Hi. > sfDatabaseException - 'Database "" does not exist' > (I'm using r2519) > > Regarding SF_SYMFONY_LIB_DIR/helper/ObjectHelper.php > _get_values_for_object_select_tag which calls > sfContext->retrieveObjects outlined here: > http://www.symfony-project.com/trac/changeset/2484 > > The sfContext->retrieveObjects method gets $class::DATABASE_NAME from a > propel class although the propel class may not be a peer class so the > database name cannot be retrieved. > > For BC something like this may be needed: > $db_name = defined("$class::DATABASE_NAME") ? "$class::DATABASE_NAME" : > $class . "Peer::DATABASE_NAME"; > ...
I don't think that is necessary. The constant should be generated automatically when you regenerate your model classes. You have to regenerate your model classes for the changes to apply, though. (Should probably be mentioned in the upgrade manual/ release notes.) Martin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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-devs -~----------~----~----~----~------~----~------~--~---
