Example #1
0
 /**
  * @param string $name
  * @return Table
  */
 public function table($name)
 {
     $table = new Table($name);
     $table->setConnectionManager($this);
     if ($this->cacheManager) {
         $table->setCacheManager($this->cacheManager);
     }
     return $table;
 }
Example #2
0
 /**
  * @expectedException \RuntimeException
  */
 public function testGetConnectionManagerShouldThrowAnExceptionIfHasNoConnectionManagerWithStrictMode()
 {
     $table = new Table('foo');
     $table->getConnectionManager();
 }