fix  Issue #3
https://github.com/kstefan/doctrine-enum/issues/3

$entity can be instance of proxy (proxy has different class name than entity)