Hi,
i'm using getter/setter in my Phalcon\Mvc\Collection and the following example didn't work:
class Foo extends Phalcon\Mvc\Collection {
    protected $bar;
    public getBar() {return $this->bar;}
    public setBar($bar) {$this->bar = $bar;}
}
$foo = new Foo();
$foo->set('hello bar');
$foo->save();In MongoDb the data looks like:
 { "_id": ObjectId("5314c35c99f22684438b4567")} After changing to:
class Foo extends Phalcon\Mvc\Collection {
    public $bar;
}everything works fine and $bar is stored too.
 {"bar"▼: "hello bar",
   "_id": ObjectId("5314c34399f22683438b4567")} It is a bug or a feature? And if i extend Collection, how should the overridden save-method looks like?
Thanks Alex