Development

Changeset 6966

You must first sign up to be able to contribute.

Changeset 6966

Show
Ignore:
Timestamp:
01/06/08 06:27:31 (2 years ago)
Author:
fabien
Message:

fixed propel generated forms when a table has several foreign/m2m keys to the same foreign table

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/generator/sfPropelFormGenerator.class.php

    r6965 r6966  
    327327    if (!$column->isPrimaryKey() && $column->isForeignKey()) 
    328328    { 
    329       $options[] = sprintf('\'choices\' => new sfCallable(array($this, \'get%sIdentifierChoices\'))', $this->dbMap->getTable($column->getRelatedTableName())->getPhpName()); 
     329      $options[] = sprintf('\'choices\' => new sfCallable(array($this, \'get%sIdentifierChoices\'))', $column->getPhpName()); 
    330330    } 
    331331 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.