Set survey

@param \Lyon1\Bundle\PoobleBundle\Entity\Survey $survey
@return SurveyItem
329335
public function setSurvey(\Lyon1\Bundle\PoobleBundle\Entity\Survey $survey = null)
    {
        $this->survey = $survey;

        return $this;
    }
45724
public function setCollection(array $collection)
    {
        if (is_array($this->buildItems) 
                && array_key_exists('collection', $this->buildItems) 
                && !empty($this->buildItems['collection'])) {
            unset($this->collection);
        }
        $this->setBuildItems();
        foreach ($collection as $builder) {
            $this->addBuilder($builder);
        }
        
        return $this;
    }
1322479
public function setGenres(Item $item, Crawler $body)
    {
        $repository = $this->doctrine->getRepository('AnimeDbCatalogBundle:Genre');
        $categories = $body->filter('categories > category > name');
        foreach ($categories as $category) {
            if (isset($this->category_to_genre[$category->nodeValue])) {
                $genre = $repository->findOneBy(['name' => $this->category_to_genre[$category->nodeValue]]);
            } else {
                $genre = $repository->findOneBy(['name' => $category->nodeValue]);
            }
            if ($genre instanceof Genre) {
                $item->addGenre($genre);
            }
        }

        return $item;
    }
804493
public function setCountry(\Chill\MainBundle\Entity\Country $country = null)
    {
        $this->country = $country;

        return $this;
    }
801644
public function setItems($items)
    {
        $this->items = ($items instanceof Collection) ? $items : Collection::make($items);

        return $this;
    }
1043167
public function removeAnswer(\Lyon1\Bundle\PoobleBundle\Entity\SurveyAnswer $answer)
    {
        $this->answers->removeElement($answer);
    }
712926
public function setPayment(\HarvestCloud\CoreBundle\Entity\Payment\Payment $payment = null)
    {
        $this->payment = $payment;

        return $this;
    }
1297465
public function setMeasureType(\Core\Entity\MeasureType $measureType = null)
    {
        $this->measureType = $measureType;

        return $this;
    }
658233
public function votes($question)
    {
        $votes = app(VoteRepository::class);

        return new Relationship(new Collection($votes->getReleventVotes($question->id), app(VoteSerializer::class)));
    }
633388
public function setExpressCheckout($request)
    {
        $caller = $this->getCaller();
        $caller->setRequest($request);

        $response = oxNew(\OxidEsales\PayPalModule\Model\Response\ResponseSetExpressCheckout::class);
        $response->setData($caller->call('SetExpressCheckout'));

        return $response;
    }
133721
public function setSalesman(\Core\Entity\Salesman $salesman = null) {
        $this->salesman = $salesman;

        return $this;
    }
647845
public function setCountry($country)
    {
        $this->set('country', $country);

        $vat = $this->getService('repos:subscriptions.vat')->find(array('country' => $country));

        if ($vat) {
            $this->setVat($vat);
        }

        return $this;
    }
1199085
public function setItem(Item $item)
    {
        if ($this->item !== $item) {
            $this->item = $item->addGenre($this);
        }

        return $this;
    }
852130
public function setPanel(FrenchFrogs\Panel\Panel\Panel $panel)
    {
        $this->panel = $panel;
        return $this;
    }
1327465
public function setAnswer(\Lyon1\Bundle\PoobleBundle\Entity\SurveyAnswer $answer = null)
    {
        $this->answer = $answer;

        return $this;
    }
1276120
public function setItem(Item $item)
    {
        $this->childOf = $item->id;
        $this->_item = $item;
        
        return $this;
    }
744937
public function removeAnswerItem(\Lyon1\Bundle\PoobleBundle\Entity\SurveyAnswerItem $answerItem)
    {
        $this->answerItems->removeElement($answerItem);
    }