Hello,
First, sorry for my bad english.
I think i found a bug in sfDoctrineColumn.class.sf when it use with model having composite primary keys and composite foreign keys (see schema.yml with this ticket).
symfony:build-model works correctly and BaseContact?.class.php seems correct:
public function setUp()
{
$this->hasOne('Client', array('local' => array(0 => 's20dos', 1 => 's20cat', 2 => 's20cli'),
'foreign' => array(0 => 's10dos', 1 => 's10cat', 2 => 's10cli')));
}
but when i launch doctrine:build-forms, i saw this message :
PHP Notice: Array to string conversion in C:\dev\www\ELiSa\lib\symfony\plugins\sfDoctrinePlugin\lib\generator\sfDoctrineColumn.class.php on
line 230
and BaseContactForm? contains some non PHP code (print of errors).
A line 230 of sfDoctrineColumn there is this line :
strtolower($relationlocal?) == strtolower($this->name)
The problem is $relationlocal? contains array of keys and not a string.
I try to replace this line by a loop for each string (columns name ok my composite key), its seems work but i don't know if it's good solution.
Regards,
TeepH