Пример #1
0
 public function testInstancePool()
 {
     $object = new Table6();
     $object->setTitle('test');
     $object->save();
     $key = $object->getId();
     $this->assertSame($object, Table6TableMap::getInstanceFromPool($key));
     Table6TableMap::removeInstanceFromPool($object);
     $this->assertNull(Table6TableMap::getInstanceFromPool($key));
     $object = Table6Query::create()->findPk($key);
     $this->assertSame($object, Table6TableMap::getInstanceFromPool($key));
 }