save() public method

Save record Will update if primary key found, insert if not Performs validation automatically before saving record
public save ( EntityInterface $entity, array $options = [] )
$entity EntityInterface Entity object
$options array
 /**
  * @param Talk $talk
  *
  * @return mixed
  */
 public function persist(Talk $talk)
 {
     $this->mapper->save($talk);
 }