I'm migrating my project made from symfony 1.4.15 with doctrine (1.2 i guess) using PHP<5 to PHP7 and i have big problems:
When i'm doing :
->select('k.*,v.*,t.*')
->from('DataKey k')
->leftJoin('k.Values v')
with config :
DataKey:
columns:
type: { type: string(5), notnull: true, comment: 'Type de donnée (list/int/text/float)' }
description: { type: string(255), notnull: true, comment: 'Libelle' }
unit: { type: string(10), notnull: false, comment: 'Unité de valeur' }
DataValue:
columns:
key_id: { type: integer, notnull: true, comment: 'Identifiant de donnée' }
value_id: { type: string(10), notnull: true, comment: 'Identifiant de valeur' }
description: { type: string(255), notnull: true, comment: 'Libelle' }
relations:
DataKey: { class: DataKey, local: key_id, foreign: id }
i got this error :
/doctrine/Doctrine/Relation.php on line 451
PHP message:
PHP Notice:
Array to string conversion in /lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Relation.php on line 451
PHP message: Unknown record property / related component "
alias : DataKey foreign : id local : key_id class : DataKey type : 0 table : Object(DataKeyTable) localTable : Object(DataValueTable) name : refTable : onDelete : onUpdate : deferred : deferrable : constraint : equal : cascade : Array owningSide : refClassRelationAlias : foreignKeyName : orderBy :" on "DataValue"
Any ideas?