Skip to content
Advertisement

Tag: cakephp-3.x

“Cannot convert value to string” when retrieving data (belongsToMany relationship)

I’m using CakePHP 3.3.6 and MySQL 5.7.13. I have these three tables in my database (amongst others) : collections, tags and the join table collections_tags. collections Table tags Table collections_tags Table in my TableCollectionsTable.php: in my TableTagsTable.php: I can get all the Collections or all the Tags. It works. But if I try to get all the Collections with their

Advertisement