Jan Aagaard Meier
Jan Aagaard Meier
Oh, actually you have to add the onDelete on the other side of the relation for this to work: ``` js Document.belongsTo(Category, { foreignKeyConstraint : true, hooks: true }); Category.hasMany(Document,...
The above comment should fix your issue, but I still think the issue should be fixed so it works from both sides, and does not create an infinite loop :)
And yes, the docs need an overhaul for 2.0. For now you can see the up to date api docs at http://sequelize.readthedocs.org/en/rtd/
The build is failing due to https://github.com/DefinitelyTyped/DefinitelyTyped/pull/62142
@Jon889 That is not somehing you "just" do - but yes that would work as well
Good point @Pomax , and for that reason I think it might be too dangerous to offer something like `sync({ alter: true })`, where we automatically alter the table structure....
This is not possible currently First we'd need to come up with a syntax for this - any suggestions @czardoz ?
Yeah, that coudl work as well :) PR welcome
I do remember we previously had support for using `??` as unescaped with unnamed replacement - but that won't work since `::` has a different meaning in postgres
@subjectix Quoting columns is not the issue - its _not_ quoting everything else