2.x
<?php $collection['1']= $xpdo->newObject('modUserGroup'); $collection['1']->fromArray(array ( 'id' => 1, 'name' => 'Administrator', 'parent' => 0, ), '', true, true);