public function save($entity) { return $this->createProvider($entity)->isNew() ? $this->create($entity) : $this->update($entity); }