GithubHelp home page GithubHelp logo

fof-nnrelation's People

Contributors

f-liva avatar peterpeter avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

fof-nnrelation's Issues

Filterfields + Reordering = Error

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)?

Usage of $this->items

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

Could not save the many to many relationship

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.