/** * @param string $entityClassName */ public function __construct($entityClassName) { $this->reflectionObject = new ReflectionClass($entityClassName); $this->castingBehavior = new CastTypes(); $this->prototypeEntity = $this->reflectionObject->newInstanceWithoutConstructor(); }