Update AbstractMedia.php

response to https://github.com/doctrine/phpcr-odm/commit/ea6a6f4203edfa15c1228e90802ecc42a22537e8

fixes https://github.com/symfony-cmf/MediaBundle/issues/102