/**
  * @param CompanyEntity $companyEntity
  *
  * @return Company
  */
 public static function toDomainObject(CompanyEntity $companyEntity)
 {
     $company = CompanyFactory::build($companyEntity->getName(), $companyEntity->getMainActivity(), $companyEntity->getLegalCode(), $companyEntity->getId());
     //        foreach ($companyEntity->getUser() as $user) {
     //            $company->addUser($user);
     //        }
     return $company;
 }