/** * @ORM\PrePersist */ public function setSlugValue() { $this->slug = Jobeet::slugify($this->getName()); }
/** * Slug location * * @return mixed|string */ public function getLocationSlug() { return Jobeet::slugify($this->getLocation()); }
/** * @test */ public function examplesWithAccent() { $this->assertEquals('developpeur-web', Jobeet::slugify('Développeur Web')); }