public function __construct(EntityDefinition $definition) { $this->definition = $definition; $this->entity = []; }