Development

Changeset 1857

You must first sign up to be able to contribute.

Changeset 1857

Show
Ignore:
Timestamp:
08/29/06 16:10:55 (6 years ago)
Author:
fabien
Message:

fixed using peer_method parameter in generator.yml throws PropelException? (closes #845, #496)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/data/generator/sfPropelAdmin/default/template/actions/actions.class.php

    r1712 r1857  
    396396    if ($sort_column = $this->getUser()->getAttribute('sort', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort')) 
    397397    { 
    398       $sort_column = Propel::getDB($c->getDbName())->quoteIdentifier($sort_column); 
     398      $sort_column = <?php echo $this->getClassName() ?>Peer::translateFieldName($sort_column, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_COLNAME); 
    399399      if ($this->getUser()->getAttribute('type', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort') == 'asc') 
    400400      {