Update EntityRepository.php

Add ability to generate classMetadata without push it in constructor