Development

#2670 (Setup of connection attribute (query_limit) in doctrine.yml does not work)

You must first sign up to be able to contribute.

Ticket #2670 (closed defect: fixed)

Opened 10 months ago

Last modified 5 months ago

Setup of connection attribute (query_limit) in doctrine.yml does not work

Reported by: michal Assigned to: chtito
Priority: minor Milestone:
Component: sfDoctrinePlugin Version:
Keywords: Cc:
Qualification: Unreviewed

Description

Setup of connection attributes does not work for QUERY_LIMIT. sfDoctrineConfigHandler assumes, that all constants are named ATTRIBUTENAME_VALUE (this is not correct for query limit - constant is LIMIT_ROW or LIMIT_RECORDS.)

# doctrine.yml
all:
  attributes:
    # export sql (none, tables, constraints, all)
    export:  all
    query_limit: rows
# cached config
$config['global_attributes']['export'] = Doctrine::EXPORT_ALL;
$config['global_attributes']['query_limit'] = Doctrine::QUERY_LIMIT_ROWS;
// exception thrown
Fatal error: Undefined class constant 'QUERY_LIMIT_ROWS' in ... config/config_doctrine.yml.php on line 11

Change History

05/13/08 04:34:36 changed by Jonathan.Wage

  • status changed from new to closed.
  • resolution set to fixed.

This is fixed in Doctrine 0.11