sxross / MotionModel

Simple Model and Validation Mixins for RubyMotion
MIT License
192 stars 67 forks source link

setting has_many relationships fails with no method error? #55

Closed bogardon closed 11 years ago

bogardon commented 11 years ago
model.rb:694:in `block in push_has_many_attr:': undefined method `include?' for #<MotionModel::ArrayFinderQuery:0xcf16370 ...> (NoMethodError)

Just looks like the code thought collection was an array or something?

sxross commented 11 years ago

Can you include some surrounding code? Are you passing the model object to MapKit or something like that? Is the object being observed using KVO? We have a known issue with the swizzled objects created by iOS in these cases and are working on it.

sxross commented 11 years ago

This may have been fixed by commit 4d6e4537e55df2d0610a505098dade8733e62611. Can you try MotionModel 0.4.5 and see if that fixes it? If so, please close.

sxross commented 11 years ago

If this problem recurs, please reopen.