Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 965971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:05:06+00:00 2026-05-16T02:05:06+00:00

in Doctrine 1, i see that it supports hierarchical data support? is there any

  • 0

in Doctrine 1, i see that it supports hierarchical data support? is there any in Doctrine 2?

UPDATE 1

ok so i used Nested Set Extension for Doctrine 2. i have some questions

1. inserting a node

// in the docs
$child1 = new Category();
$child1->name = 'Child Category 1';

$child2 = new Category();
$child2->name = 'Child Category 2';

$category->addChild($child1);
$category->addChild($child2);

it seems like i must do something like

$root = $nsm->createRoot($category);
$root->addChild($child1);
$root->addChild($child2);

likewise to add sub children

$child2wrapper = $root->addChild($child2);
$child2wrapper->addChild($newChild);

2. abt the root field and having multiple trees.

say i want multiple trees, i see that the extension does not populate my root field? how shld i populate it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:05:07+00:00Added an answer on May 16, 2026 at 2:05 am

    you can see this links :

    http://github.com/guilhermeblanco/Doctrine2-Hierarchical-Structural-Behavior

    http://www.devcomments.com/Any-hierarchical-data-support-in-Doctrine-2-at251409.htm

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Symfony 2.0.10 with Doctrine 2.1 and have rather simple query (see
I have a site that uses both Doctrine Migrations and Fixtures successfully (awesome features!),
I have a custom Form I've made that extends the Doctrine base forms for
I have set up a bundle that has a test object which holds a
I am using Doctrine 2 entities. We have some entities which have to update
Doctrine 2 documentation states that: Removing an association between two entities is similarly straight-forward.
Doctrine version 2.1 i am persisting a lot of objects, that is why I
Using Doctrine 2 I want to get some users that are contacts of another
I have Doctrine 2.1 entity: /** * @Entity(repositoryClass=Varlab\Model\Repository\UserRepository) * @Table(name=user) */ class User {
I have what I assume is a configuration problem with my Doctrine schema.yml, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.