Hello, I have the following relation
'entity1' hasMany Through 'entity1_entity2'
'entity2' hasManyThrough 'entity1_entity2
entity1Object.entity2.add(entity2Object);
In debug mode I can see the following query:
SQL: SELECT `entity1_id`,`entity2_id`,`id` FROM `entity1_entity2` WHERE `entity1_id`=? AND `entity2_id`? ORDER BY `id` LIMIT 1, params: [1,2]
Mysql error:
{ [Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2 ORDER BY `id` LIMIT 1' ...
Seems like an '=' is missing.. is this a bug ?
Hello, I have the following relation
'entity1' hasMany Through 'entity1_entity2'
'entity2' hasManyThrough 'entity1_entity2
entity1Object.entity2.add(entity2Object);In debug mode I can see the following query:
Mysql error:
Seems like an '=' is missing.. is this a bug ?