Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gives a "TypeError: Cannot read property 'column' of undefined" #40

Open
squgeim opened this issue Apr 13, 2018 · 0 comments
Open

Gives a "TypeError: Cannot read property 'column' of undefined" #40

squgeim opened this issue Apr 13, 2018 · 0 comments

Comments

@squgeim
Copy link

squgeim commented Apr 13, 2018

I'm not sure what exactly triggered this in one particular modal. I am also using bookshelf-paranoia which also overrides destroy.

I was able to fix it for my case by replacing this._knex by this.eloquent.knex in line 70.

- const id = this.get(this.idAttribute) || this._knex.column(this.idAttribute);
+ const id = this.get(this.idAttribute) || this.eloquent.knex.column(this.idAttribute);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant