/** * Serialize dojo manually due to FosUserBundle adding password and salt * @TODO: Seperate dojo from user account * * @param User $dojo * @return array */ private function serializeDojo(User $dojo) { return ["id" => $dojo->getId(), "email" => $dojo->getEmail(), "name" => $dojo->getName(), "location" => $dojo->getLocation(), "street" => $dojo->getStreet(), "housenumber" => $dojo->getHousenumber(), "postalcode" => $dojo->getPostalcode(), "city" => $dojo->getCity(), "lat" => $dojo->getLat(), "long" => $dojo->getLong(), "facebook" => $dojo->getFacebook(), "twitter" => $dojo->getTwitter(), "website" => $dojo->getFacebook()]; }