I have two tables joined with a OneToOne relationship, one side exists in the database. When I insert the other side I want the first side's foreign k ...
I have two tables joined with a OneToOne relationship, one side exists in the database. When I insert the other side I want the first side's foreign k ...
. Answers to this question are eligible for a +50 reputation bounty. jo ...
I am working on this application that uses inheritance on models, but it is getting this error message on the view: superclass mismatch for class Ban ...
I have an application where a User can create many Links, and each Link can store different type of data, depending on what type of Link it is. For ex ...
Is there any way to change an inheriting entity's type (in the DB) to a different entity type? ...
Lets say I have a Base entity that implements typeorm TableInheritance (single table inheritance), and I have two deriving entities: A and B. I want ...
When i have only product class and two classes that extends product with inheritance strategy single table(product -> electronics , garden) it work ...
I have a join table named Relations in a many to many relationship between departments and researchers. I want to be able to get a list of students b ...
I just came across with such a line in some model in Rails: What does it do? ...
We have a simple single table mapping, a ship with images and documents (both sub classes of an attachment) attached to it: I created a test ...
Each Product is "owned" by a given Tenant (i.e. user) and requires a color which could be either a standard Color available to all tenants or a propri ...
I have a parent model 'page' and nested attributes model 'page_modules' which at same time are modeled by 'Single Table Inheritance' pattern. My prob ...
I have the following class structure with 2 base classes (Filter and Map). @Entity public abstract class Filter { } @Entity public class AFilter ext ...
This is (I think) a generic question, but here's a specific example. Suppose that: Albums each have 1-n Tracks. Each Track is in exactly one Alb ...
I've followed a few sources to figure out how to implement Single Table Inheritance in Ruby On Rails. The specific example I used just involved 2 type ...
I have one project in Rails where I used Single Table Inheritance on Users Table, by creating two roles for Users table - 1.Clinician and 2.Patient. T ...
I'm trying to handle a legacy database with doctrine. There is many fields in different tables that are codes which refer to a unique code table CHOIX ...
I am building a rule engine system and I want to allow users to fetch their requested rules and rules they are subscribed to as notification recipient ...
I have a ActiveRecord STI subclass that I want to rename (case sensitive change). But if I change the class name of the subclass ActiveRecord cannot ...
When using discriminator value for inheritance/single table strategy, the first inserted entity's discriminator value is null but the value is there i ...