added className as constructor parameter for BaseEntityType.php
bug fix for em->persist function