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