ah, ok. yeah then manager should not be = null. as $class has no typehint, it still can be null, which is a valid situation for phpcr-odm. can you please check if getRepository works out in the case of null? i think it won't - but probably it would be good to make that work too.