Backbone-relational icon indicating copy to clipboard operation
Backbone-relational copied to clipboard

Get and set relations (one-to-one, one-to-many, many-to-one) for Backbone models

Results 71 Backbone-relational issues
Sort by recently updated
recently updated
newest added

When setting nest model values to same current values, relation:change event is triggered. And unless i'm mistaken, it shouldn't. It seems pretty similar to #140. Code example ``` var Phone...

bug

Hello, I met a particular case, I have a model that contains hasOne relationships which in themselves have same relationships. The problem was that the toJSON took over the includeInJSON...

enhancement

I have a problem, but I don't know if it's an issue though. I have a relational model which has 'POST', 'PUT' and 'DELETE' functionality. It also has a relation...

docs
PR in progress

Sometimes a model instance (child) is related to a number of other model instances (parents). If I initialize parent-1 and parent-2 I'd like to attach the child. For the parent-1...

enhancement

Week HasMany Days with reverseRelation I want to get Week from any Day, but `day.get('week')` returns `null` So the code is: ``` javascript var Day = Backbone.RelationalModel.extend({ initialize: function(){ alert(this.get('week'));...

bug

Scenario: - has model with several listeners on some property propA - one of the listener change another property propB. - In rest of handlers for propA previousAttributes contains new...

bug
help wanted

Hi, I am very much stuck creating relations between my models. I am reusing some models as submodels and it always gives me the error: `Cannot create relation=s on "page_id"...

bug

It would be great if models in a hasMany relationship could be parsed by the corresponding collection model. Here is an example: ``` var MyModel = Backbone.Model.extend({ relations : [...

bug

Hi. I got an huge wtf problem that i can't figure out. I explain : I have a model named Product : ``` javascript var Product = Backbone.RelationalModel.extend( { urlRoot:...

bug
question

Hi, I would like to know if the use case presented in this jsfiddle is possible with Backbone Relational http://jsfiddle.net/fe0wkws8/2/ In this example, I would like `Zoo` to have a...

question