-
Hey, I've encountered a problem with inserting relationships for derived entities in STI.
Suppose I have these entities: `Post, PostWithImage, Image`. `PostWithImage` is derived from `Post` and has…
-
I want to reset both flags on a single model instance when persisting it to a back-end database. (Presently, I'm using the Vuex ORM GraphQL plugin for the latter purpose, but that is somewhat orthogon…
-
Currently when defining a many-to-many relationship, one does not have direct access to all the fields in the pivot model, from the entity.
-
#### Describe the bug
The `belongsToMany` and `morphToMany` relations incorrectly resolve pivot data where the source model belongs to many target models in the same query. The unit tests only cove…
-
Funny story: The whole reason I started looking into Vuex ORM was because I want to be able to find or filter rows of data based on user-entered values that may not be complete and which I can't send …
-
Is there a way to lazy load relations on an existing entity? Currently the only way to retrieve relations is through query:
```js
let user = User.query().with('comments').find(42);
```
I'd lik…
-
#### Describe the bug
Inserting a model then immediately try to retrieve it using `Model.query().whereId(id).first()` will return `NULL`, while running `Model.find(id)` will retrieve the instance cor…
-
I have a model like the following one:
```js
class Person extends Model {
static entity = 'people'
static fields () {
return {
id: this.attr(),
name: this.string(),
…
-
I want to define a generic `Product` model that can contain products of different type. Following your suggestion in #50 , my models look something like this:
```js
class Widget extends Model {
…
-
I have collected some useful ORM relationships, and try to corresponding them to Vuex ORM methods.
But some of them have no corresponding methods.
Can anyone help me improve the table below?
…