$object->save()
to save the node-object.\Orm\Model::query()->as_object()
but that was beyond my skills and time available. Yet I guess, this is the way to go as I've seen this kind of implementation in a Model for the Zend Framework, and one for Doctrine 2. That's all due to PDO::fetchObject as this does early-binding which means, the class properties are set before __construct() is called. This can be avoided by using something along the lines of $stmt->setFetchMode(PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE, "className", $constructorArguments);
It looks like you're new here. If you want to get involved, click one of these buttons!