public function __construct(AbstractEntity $entity)
{
$this->position = 0;
$this->entity = $entity;
$this->refl = new ReflectionClass(get_class($entity));
$this->refProps = $this->refl->getProperties(ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PUBLIC);
}