quick
quick copied to clipboard
A ColdBox ORM Engine
The most common use case of `whereHas` is to check a value against a column on a relationship. It's rather verbose to do that right now: ```cfc var books =...
Due to the overload of the `get` method in `CBORMCompatEntity`, the pass through on the `with( 'myRelationship' )` when using an in-entity will always fail with the exception: `The value...
Quick's behavior is to throw a hard error when attempting to access a relational property on an unloaded entity. It is often common to perform post-fill checks on properties to...
We have an `invoice` entity that `hasMany` `lineItems`, and in the `preDelete()` interceptor we had this code: `this.lineItems().deleteAll()` The resulting query was (from memory now, but the important part is...
Separately from https://github.com/coldbox-modules/quick/issues/124 - if on `User` I call `posts().deleteAll()`, it seems at the moment that it gets passed to QB but doesn't actually change the in-memory relationships on `User`....
I'm not sure what to do with this, but I am trying to define a relationship for a user that pulls up a single account out of many to which...
Problem: `.create()` always persists entities and while you used to be able to use `associate()` on a `belongsTo()` to associate objects in memory without saving them, now you can't do...
We have `invoice` which has a polymorphicBelongsTo `entity` that is either a `child` or a `user`. The relationship works perfectly unless we try to eager-load the relationship with `.with()`. It...
If you have an entity whose primary key `property` name does not equal the `column` name, `firstOrNew` appears to ignore the `column` definition -- looks like it is passing the...
Will provide more detail later but wanted to get this down before heading into a meeting. We have `qChild` `registrations()` (hasmany) --> `qRegistration` `teamAssignments()` (hasmany) --> `qPlayerAssignment` We also have...