LearnBoost/mongoose — Issue #562: Invalid ObjectId
Author: wavded
Created: 2011-10-11 21:16:45+00:00
State: open

Seems something switched in todays updates somewhere, I'm getting this error message now, and a lot. Note I do use dbrefs:

```js
{ stack: [Getter/Setter],
arguments: undefined,
type: undefined,
message: 'Invalid ObjectId' }
```

Here is an example snippet of what I was doing, if you need more I can get you that:

```js
Arc.findById(someId, function(err, arc){
arc.associations.id(someAssocationId).remove()
console.log(arc.associations); // it will be removed
arc.save(function(err){
// err will show above message and won't save with removed
});
});
```