-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Sails MASTER --> Waterline Error #3014
Comments
To make a really good test, I would:
This will guarantee that all of your app's dependencies (including those within the Sails install) are the correct versions to work with the master branch. Give that a shot and let us know if there's any change. |
i did exactly this |
There's a lot going on in that code sample to test. If you can reduce it down to the smallest failing case (maybe just |
I do not have a repo online yet. I ll try to reduce the bug. I let you know. |
I found exactly where the error occure This is the start of the full method above article:function(req,res,next) {
req.locale = req.locale || 'en'
moment.locale(req.locale)
Article.find(req.params.id).populateAll().exec(function (err,items){
if(err)
callback(err)
if(items.length>0)
{
items[0].nbView= Number(items[0].nbView) + 1;
items[0].save(); // <<<-------------- HERE HERE HERE If i remove this save() the rest of method seems to work correctly. any idea? Why this save method doesnt work anymore? I paste you the full error. i case an idea come out
|
I add my Article Model
|
One issue with your code is that you're treating
The rest of the code can be exactly the same (including If changing your
In general, if you're not adding/removing from a many-to-many relationship on a model, |
I can t test it right now but i ll let you know. but why this 'fail' safe method worked on 0.11.0? |
Ok, i got this working ! But one other error occur whilch doesnt appear before updating. i opened a new issue #3015 Maybe you can close this |
Leaving this issue #3008, i updated my sails apps to master branch to benefit of the fix from @sgress454 .
But something else in the master branch make my application crazy.
All my complexe method to fetch items, add/delete/update items with association doesnt work anymore.
Error thrown mention 'collection' and waterline
Here is one sample route where i this error occure. (It just fetching a article with his associated collection.) I am 100% sure this worked on sails 0.11.0
I really need the fix about socket, i can t downgrade to sails 0.11.0 almost nothing work in my app under master branch.
The text was updated successfully, but these errors were encountered: