adonis-lucid-polymorphic
adonis-lucid-polymorphic copied to clipboard
As far as I can tell this is not already supported... Can we add the ability to define a pivot table for polymorphic relations? For the use case of; a...
I currently don't have the resources to maintain this project. If someone is willing to put in the time to do it, I'm willing to assign the necessary privileges to...
## Package version 6.1.3 ## Node.js and npm version 9.1.0 and 6.4.1 ## Sample Code (to reproduce the issue) Getting this error: `E_CANNOT_OVERRIDE_RELATION: Trying to eagerload headChef relationship twice` When...
I'm wondering this situation. We'd used this package on _AdonisJS 4.1_ project but now we'd upgraded it from _4.1_ to **_5_** and we need to this package so much that...
verify RelatedModel.name
This is similar to laravels morphMap. > Relation::morphMap([ > 'posts' => 'App\Post', > 'videos' => 'App\Video', > ]);
Hey, I've been using adonis-lucid-polymorphic on a new project and just encountered a confusing issues. Briefly, the **MorphTo**'s `whereHas` query (seems like also true for `has` query) only considers the...
Can I store a register with this sintax? post.comments().create({ ... }) The console show this error post.comments is not a function
// App/Model/Comment 'use strict' const Model = use('Lucid') class Comment extends Model { static get traits () { return ['@provider:Morphable'] } commentable () { return this.morphTo([ 'App/Models/Post', 'App/Models/Video' ], 'id',...