/** * Enable only published. * * @param bool $enable * * @return $this */ public function setOnlyPublished($enable) { $this->mapping->setOnlyPublished($enable); return $this; }