Ricardo Graça ricardograca

@ricardograca
hasChanged always false on 'updated' event
@ricardograca

The updated event is fired after the model is updated, so that will reset any changes, which means that it will no longer be considered changed. Wh…

@ricardograca

The problem with that is that you're calling the model constructor leagueModel.Bets() and then calling .forge() on the result of that. That doesn't…

@ricardograca

It's not possible for .catch to not be recognized as a function. Can you provide the whole sample code where that is happening?

@ricardograca

Nice! What will be in the Misc section of methods? Wouldn't a Events section be more helpful?

@ricardograca

You can't currently. Not with Bookshelf alone. It is possible if you modify the query though. Check issues #202, #355, #597, #655 and #834 for more…

@ricardograca

Then your Holding model is wrong. The security relation should be belongsTo. In a belongsTo the foreign key is in the current model, which seems to…

@ricardograca

So, as you currently have things set up, the securities table should have a foreign key named symbol which points to the primary key of holdings. C…

@ricardograca

Are you getting any errors? I think there is a limit on the number of arguments you can pass to that IN (...) statement, and that could be the cause.

@ricardograca

So, you need to filter the results of Table_b based on an attribute of the related Table_a right? That's currently not possible with Bookshelf alon…

@ricardograca

Can you explain what the intended result is? And also, where did you get that first code example? AFAIK models don't have a .select() method since …

@ricardograca

Well, Bookshelf doesn't do joins currently. You will get the data you want, but through individual queries, so in your example there will be 3 sepa…

@ricardograca

This requires #821 first. As soon as we can know which attributes are relations I think it would be relatively straightforward to change the behavi…

@ricardograca

I know. Sorry about that. @rhys-vdw FYI.

@ricardograca

Right, as I expected. Unfortunately Bookshelf currently doesn't support saving related data as easily as that. .save() will only try to save the mo…

@ricardograca

What values are you setting on the Org model instance before saving?

@ricardograca

I didn't know you can use promises mixed in with events like that. What happens if you remove the Promise.method? Also, what is the value of tags t…

@ricardograca

What's the SQL output? And does the property actually exist in the table?

@ricardograca

What happens if you don't delete the attribute in this case?

ricardograca commented on pull request tgriesser/bookshelf#826
@ricardograca

Many thanks :)

@ricardograca
@ricardograca
Fix two small typos.
1 commit with 1 addition and 1 deletion
ricardograca commented on pull request tgriesser/bookshelf#824
@ricardograca

If you could get rid of that "Merge pull request..." commit I would gladly merge this.

ricardograca commented on issue mootools/website#206
@ricardograca

It's still not fixed, but I can't reopen it. Clicking on the link to Request still produces an error: Oops, this is not the page you're looking fo…

@ricardograca

Got it. @rhys-vdw is going to work on relations, so he should be able to provide some more feedback on this.

@ricardograca

I see. Can you explain what the use case for that is?

@ricardograca

So what do you want to know exactly? I don't think I follow your question.

@ricardograca

Checkout issues #407 and #711 and see if those answer your question.

@ricardograca

I can't not be bothered with the query() because it's the cause of your related country attribute being empty. We can only help you if you post act…

@ricardograca

That's a really convoluted way of fetching what you want. What is that .query() call doing there? What is city_id? Is it the primary key?