/**
  * Sets the database adapter.
  *
  * @param AdapterInterface $adapter
  *
  * @return $this
  */
 public function setAdapter(AdapterInterface $adapter)
 {
     $this->table->setAdapter($adapter);
     return $this;
 }