public function getCategorySlug() { return Shop::slugify($this->getCategory()); }
/** * @ORM\PrePersist */ public function setSlugValue() { // Add your code here $this->slug = Shop::slugify($this->getTitle()); }