Markus Hedlund

Results comments of Markus Hedlund

Thanks for the link to the relevant code, but sorry I'm not sure to what in the code you are referring to. What I want to achieve is ignore the...

I made up the `paranoid` option myself, as a proposal how I imagined it could be, so no I didn't try it :) but yeah you're right, it magically worked

@janmeier Right! ``` js User = sequelize.define('person', {}); PersonRole = sequelize.define('person_role', {}); Role = sequelize.define('role', {}); Product = sequelize.define('product', { key: { type: Sequelize.STRING } }); Account = sequelize.define('account', {});...

This is a complete example of how to recreate the error: https://gist.github.com/Znarkus/93dae9f703d6d8ab012b

Trying to work around this, but am hitting more issues (based on the Gist): ``` return Person.find({ include: { model: PersonRole, as: 'personRoles', include: { model: Role, where: { id:...

Created a pull request https://github.com/sequelize/sequelize/pull/4860. But I realize this would be a breaking change.

Workaround: ``` var _ = require('lodash'); var QueryGenerator = require('../node_modules/sequelize/lib/dialects/abstract/query-generator'); var whereItemQuery = QueryGenerator.whereItemQuery; QueryGenerator.whereItemQuery = function(key, value, options) { if (value && value.$notIn && _.isArray(value.$notIn) && !value.$notIn.length) { return...

Sequelize 3.2.0 – Bluebird ~2.9.24 Sequelize 3.14.2 – Bluebird 3.0.6 I noticed the problem in one of our test suites, which did timeout instead of failing with an error.

Thanks for the response! Changed the code to this: ``` const request = require('request') const sharp = require('sharp') const metaReader = sharp() .on('info', info => { console.log(info) }) .on('error', err...