public function __construct($id) { $this->entityName = 'SuluResourceBundle:Filter'; $this->id = $id; parent::__construct('The filter with the id "' . $this->id . '" was not found.', 0); }