Hi,
I have an N to N relation with my table, which I defined this way :
->setRelationNtoN('doc_manquants', 'etude_plans_documents_manquants', 'etude_plans_liste_documents', 'no_enregistrement', 'id_document', 'label')
As I understand, the first parameter ($fieldName), is not an existing column in the table. It's used to name the "virtual" column (for column names, edition label, etc.). That previous line of code worked perfectly in grocery-crud enterprise 2.3.3. Yesterday I upgraded, and I now get this error message :
( ! ) Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'etude_plans.doc_manquants' in 'field list'' in /Users/cletourneau/projects/ipsum/application/libraries/zendframework/zend-db/src/Adapter/Driver/Pdo/Connection.php on line 360 ( ! ) PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'etude_plans.doc_manquants' in 'field list' in /Users/cletourneau/projects/ipsum/application/libraries/zendframework/zend-db/src/Adapter/Driver/Pdo/Connection.php on line 360
The error message disappears if I comment out the setRelationNtoN.
Am I doing something wrong, or can you confirm the problem?
Thanks