This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hey everybody,
I just started to use octobercms a couple of days ago. For a plugin I want to create a relationship between projects and users from rainlab frontend user plugin. Right now I can't get a simple many-to-many relationship between the two simple models to work (I did not use rainlab user plugin by now):
Model:project <-- belongs to many --> Model:user
The whole plugin setup was done with the new Builder plugin. I also added " 'Backend\Behaviors\RelationController'" and 'config_relation.yaml'; for the Projects controller. (Found this in the docs)
If I click on the record finder in the backend (Create Project), there is the following error message:
"Model 'StudyDigital\Demorelationuser\Models\Project' does not contain a definition for 'user_id'." on line 508 of /Users/admin/webserver/octobercms/modules/backend/Classes/Controller.php
Plugin source code: https://github.com/programmieraffe/octobercms-many-to-many-relation
Help much appreciated - thanks in advance! :-)
I used this tutorial: https://vimeo.com/123489421
Best regards, Matthias
Last updated
1-1 of 1