Associations typically refer to relationships between models in ORMs such as ActiveRecord.
I have a belongsToMany association on Users and Contacts. I would like to find the Contacts of the given User. …
cakephp associations conditional-statements cakephp-3.0 query-builderI am working with a few legacy tables that have relationships, but those relationships haven't been explicitly set as primary/…
linq linq-to-sql class foreign-keys associationsI have tons of instances where I need to implement some sort of Polymorphic Association in my database. I always …
sql-server associations polymorphic-associations database-normalizationMy app currently uses the Sequelize sync() method to create the database, and I want to change it to use …
node.js associations database-migration sequelize.jsmodel a: has_many :b, :dependent => :delete_all model b: belongs_to :a belongs_to :c model c: has_…
ruby-on-rails activerecord associations cascadeI have an model PointOfContact which has_many Systems. From the Systems side I want to identify the PointOfContact as …
ruby-on-rails-3 associations model-associationsI am new to rails, and am trying to set up a many-to-many relationship in my rails project. I have …
ruby-on-rails migration associations has-and-belongs-to-manyI'm currently using a standard one-to-one relationship to handle parent/child relationships: class Category < ActiveRecord::Base has_one :category …
ruby-on-rails associations parent-childIt took me way too long to find a solution to the scenario described below. What should seemingly be a …
entity-framework associations code-first dbcontextI have read the SQLAlchemy documentation and tutorial about building many-to-many relation but I could not figure out how to …
python many-to-many sqlalchemy associations