selectTypeMap() публичный метод

When called with no arguments, the current TypeMap object is returned.
public selectTypeMap ( Cake\Database\TypeMap $typeMap = null )
$typeMap Cake\Database\TypeMap The map object to use
Пример #1
0
 /**
  * Tests the selectTypeMap method
  *
  * @return void
  */
 public function testSelectTypeMap()
 {
     $query = new Query($this->connection);
     $typeMap = $query->selectTypeMap();
     $this->assertInstanceOf(TypeMap::class, $typeMap);
     $another = clone $typeMap;
     $query->selectTypeMap($another);
     $this->assertSame($another, $query->selectTypeMap());
 }