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 6998819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:27:38+00:00 2026-05-27T20:27:38+00:00

Using Docrine2 entities, I have a list entity, with a manytomany relationship with item.

  • 0

Using Docrine2 entities, I have a “list” entity, with a manytomany relationship with “item”.

I need to manipulate and save the order of the items in the list. I can’t figure out how to accomplish this using Doctrine2. What I want is a joiner table that looks something like:

list_item
=========
list_id
item_id
sort_order

All I can find is this outdated to-do item: http://www.doctrine-project.org/jira/browse/DDC-213

Can I accomplish this using Doctrine? Or is there some other way I should be going about this?

Thanks.

  • 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-27T20:27:39+00:00Added an answer on May 27, 2026 at 8:27 pm

    Here is an exerpt from this docs section, that answers your question:

    Real many-to-many associations are less common. […] Why are many-to-many associations less common? Because frequently you want to associate additional attributes with an association, in which case you introduce an association class. Consequently, the direct many-to-many association disappears and is replaced by one-to-many/many-to-one associations between the 3 participating classes.

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

Sidebar

Related Questions

I am loading a list of many entities. These entities have a one-to-many association
I am developing using zend framework and doctrine2.1. I have generated entities from database.
Right now I'm using Doctrine2 in conjunction with Symfony2. I have an entity called
I have a problem trying to get data from a table (via entity) using
I am using Doctrine2 migrations. I need some answers about my doubt, I canno
I have a PHPUnit test that's using a Doctrine2 custom repository and Doctrine Fixtures.
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using android 2.3.3, I have a background Service which has a socket connection. There's
I have a slow query in a Symfony2 project using Doctrine2. I am unsure
I'm using Symfony2 and Doctrine2 to create a blog engine. I will have three

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.