Code Monkey home page Code Monkey logo

Comments (5)

franzose avatar franzose commented on June 11, 2024

@kaviarasankk could you provide your models and tables setup and the workflow that fails?

from closuretable.

kaviarasankk avatar kaviarasankk commented on June 11, 2024

Model Class:

hasMany('Hierarchy'); } public function profileRule() { return $this->hasMany('Rule'); } ``` } --- ## Closure Table Model Class: id)->get(); ``` // While using getDesandant & getAncestors method throughs error - 'Call to a member function getTable() on a non-object' #129 print_r($children->first()->getChildren()->toArray()); } } ``` public function postDelete() { ``` //Not deleting the corresponding rows in closure table $delete = Skeleton::find(Input::get('itemsDelete')); $delete->deleteSubtree(true); ``` return Response::json(array('message' => 'Deleted successfully'), 200); } ``` } --- ## DB Table: migrated as per ClosureTable

from closuretable.

franzose avatar franzose commented on June 11, 2024

@kaviarasankk Have you solved your problem?

from closuretable.

kaviarasankk avatar kaviarasankk commented on June 11, 2024

Nope

from closuretable.

franzose avatar franzose commented on June 11, 2024

@kaviarasankk Those issued seem to have been resolved. Please pull the latest master and checkout changes. Also notice that parent_id foreign key must have onDelete('set null') rule. Unfortunately it was missing but now I have added that to the stub of the entities' table migration.

from closuretable.

Related Issues (20)

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.