Why did you remove this ????? :skull:  :skull:  :skull: 

```php
            if (null === $template = $repository->find($row['model_of'])) {
                $em->remove($user);
            } else {
                $user->setModelOf($template);
                $em->persist($user);
            }
```