Example #1
0
 /**
  * Sets the DependencyInjection connection service name used to read data
  *
  * @param string $connectionService
  * @return \Phalcon\Mvc\Model
  * @throws Exception
  */
 public function setReadConnectionService($connectionService)
 {
     if (is_string($connectionService) === false) {
         throw new Exception('Invalid parameter type.');
     }
     $this->_modelsManager->setReadConnectionService($this, $connectionService);
     return $this;
 }