getShardKey() 공개 메소드

public getShardKey ( ) : array
리턴 array
예제 #1
0
 public function testSetShardKeyForClassWithCollPerClassInheritance()
 {
     $cm = new ClassMetadataInfo('stdClass');
     $cm->inheritanceType = ClassMetadataInfo::INHERITANCE_TYPE_COLLECTION_PER_CLASS;
     $cm->setShardKey(array('id' => 'asc'));
     $shardKey = $cm->getShardKey();
     $this->assertEquals(array('id' => 1), $shardKey['keys']);
 }