public function __construct()
{
if (defined('static::ENTITY_CLASSNAME') === false) {
$this->entityClassName = preg_replace(['/\\\\Repository\\\\/', '/Repository$/'], ['\\Model\\', ''], get_class($this));
} else {
$this->entityClassName = static::ENTITY_CLASSNAME;
}
}