Latest #many-to-many-association Threads Top

ravecat
How can I implement a form with m2m field (select shown in the screenshot)? I would like to emphasize that this is not a dynamic form, a...
New
bottlenecked
Hi all, I’m thinking about creating a many-to-many association on one of my schemas like this many_to_many :active_foos, MyApp.Foo, ...
New
WammKD
So I have a table of ItemA which has a many-to-many mapping to ItemB. In the changeset of ItemA, the ItemB association gets preloaded an...
New
ronindev
Hello I am trying to do a many to many association between resources from two diferent apis this is my registry from both sides defmodul...
New
sharkmyster
I’m working on a game app that has an answers table and a categories table. This relationship is many to many. The admins for the app ca...
New
chrisdel101
I’ve been trying to connect 2 tables (for over a week) using a join table as described in Ecto Association Guide – Ecto v2.2.11. Best doc...
New
azrael
Hi, I am working on a first elixir project and I am struggling quite a lot with the many_to_many association. I have got it sort-of work...
New
theshapguy
defmodule App.Newsletters.Newsletter do use App.Schema import Ecto.Changeset schema "newsletters" do field :frequency, :string...
New
nikolis
Hello all, I have the following question for a project I am developing. I have two Schemas schema "recipes" do field :author, :s...
New
silverdr
In a many-to-many relationship, let’s say users and chatrooms for a good example, there’s a join table users_chatrooms and appropriate Ec...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

f0rest8
Hi everyone, Just wanted to say that the new Self-referencing many to many guide is now up on the official Hex docs (at least I just not...
New
sharkmyster
I’m working on a game app that has an answers table and a categories table. This relationship is many to many. The admins for the app ca...
New
ronindev
Hello I am trying to do a many to many association between resources from two diferent apis this is my registry from both sides defmodul...
New
WammKD
So I have a table of ItemA which has a many-to-many mapping to ItemB. In the changeset of ItemA, the ItemB association gets preloaded an...
New
bottlenecked
Hi all, I’m thinking about creating a many-to-many association on one of my schemas like this many_to_many :active_foos, MyApp.Foo, ...
New
ravecat
How can I implement a form with m2m field (select shown in the screenshot)? I would like to emphasize that this is not a dynamic form, a...
New

Trending Over Three Years Top

siakaramalegos
I have a Phoenix app with two resources that have a many to many relationship. To simplify, let’s call them posts and tags. When I create...
New
New
jamesmintram
So I am trying to figure out how to work with Forms + Many to many relationships. Lets say I have the following schema "tour" do fi...
New
silverdr
In a many-to-many relationship, let’s say users and chatrooms for a good example, there’s a join table users_chatrooms and appropriate Ec...
New
lou00011
Jump off point, same problem, but this solution isn’t working for me. I have a many_to_many association. Even after getting put_assoc ri...
New
maz
I have Users and Orgs. Users can belong to multiple Orgs and Orgs can have many users: defmodule Elijah.Schema.User do use Ecto.Schema...
New
chrisdel101
I’ve been trying to connect 2 tables (for over a week) using a join table as described in Ecto Association Guide – Ecto v2.2.11. Best doc...
New
venomnert
Context: A customer_lead can be associated to many service_category. A service_category can be associated to many customer_leads. custom...
New
New
njwest
Hiya, we’re designing PostgreSQL schemas for an app that has Users, and the user has Things of different types as well as Affinities for ...
New
JosipSylo
By reading through previous questions and issues I converted my schemas from using a “many_to_many” to “has_many” and “belongs_to” in ord...
New
fchoquet
I’ve chosen Elixir/Phoenix to quickly prototype an idea. This is my first project with Phoenix and I’m struggling a little with things th...
New
tnederlof
EDIT ** The code now works after some help I started a thread a few days ago with some general questions and since I am now focused and ...
New
azrael
Hi, I am working on a first elixir project and I am struggling quite a lot with the many_to_many association. I have got it sort-of work...
New
voger
I am writing a twitter clone project to see how it is done. I want to be able to create mentions to users from the post. I have these sch...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement