alexkupreev / jelly-mptt Goto Github PK
View Code? Open in Web Editor NEWAn MPTT extension for Jelly modelling system for Kohana 3
Home Page: http://kupreev.com
An MPTT extension for Jelly modelling system for Kohana 3
Home Page: http://kupreev.com
Hello
I get this error Argument 1 passed to Model_Product_Category::initialize() must be an instance of Jelly_Meta_MPTT, instance of Jelly_Meta given
when I load the MPTT model through the method with():
$products = Jelly::select('product')->with('product_category')->execute();
I temporarly solved the problem by preloading the Mptt model like that:
Jelly::factory('product_category');
$products = Jelly::select('product')->with('product_category')->execute();
Couldn't find a real solution. You probably have to overload another method in classes/jelly.php
Hello,
There is a problem with adding new items to database when table has relationship with some other table. I have 2 tables in database : 'items' and 'types'. 'Items' belongs to 'types' and 'types' has many 'items'. When I try to add new item with 'insert_as_new_root()' everything is fine, but when I'm using insert_as_first_child() or insert_as_last_child() then I get error 'Table 'types' was not locked with LOCK TABLES [ SELECT types
.id
AS id
, types
.name
AS name
FROM types
WHERE types
.id
= 2 LIMIT 1 ]'. I'm using jelly, jelly-mptt, formo and formo-jelly.
Thanks
File: classes/jelly/model/mptt.php
String 65 ...
Using Jelly_Field_MPTT_Left class to define Left, Right, Level and Scope fields.
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.