f-liva / fof-nnrelation Goto Github PK
View Code? Open in Web Editor NEWFOF (Framework on Framework) support for many-to-many relations.
FOF (Framework on Framework) support for many-to-many relations.
Got a component with multiple relations and filter-fields to filter in the list view. When I try to reordering the items the form generates (empty or not) post vars from these filter fields, and the nnrelation-table behavior trys to proceed them in onAfterStore(), while the model on reordering loads every single item as table object, adjust the reordering, and save them (and triggers the onAfterSave()).
And this results in wrong relations or sql-error.
Hmmm....maybe need to check the saving-context (if possible)?
Hi Federico,
The n-n relation saving works perfect and many thanks on that. A new question on displaying on read view, as you mentioned in the README.md the $this->items
data holds the object of current view and it's related objects (eg. $this->items
in team view contains team object and it's related player object, as their n-n relation is specify in #__foobar_teams_players table). However, when I try to var_dump or log $this->items
in both back-end edit and front-end read view, it returns Undefined property: F0FViewForm::$items. For the case $this->item
without 's', I got the object for the current view but not the related objects.
Sorry to bother you again, appreciate your effort very much!
BR,
Carl
Hi, this is Carl. I'm new to FOF and find your for-nnrelation plugin very useful when dealing with saving many to many relationship. However, when I try to save a record having a n-n relation with another table through a simple pivot table(with com_a_b_id, com_a_id, com_b_id), I get an error like this: "Fatal error: Call to undefined method F0FTable::getId() in C:\xampp1.8.3\htdocs\jm336\libraries\f0f-nnrelation\tables\nnrelation.php on line 50", the main record is updated though.
I am using Joomla 3.3.6 & FOF 2.3.0 and have followed the all the steps in your README.md, would you please advise what could possibly cause the above issue? Thank you very much in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.