public function isSharded() { return $this->shardKey ? true : false; }
public function testIsShardedIfThereIsAShardKey() { $cm = new ClassMetadataInfo('stdClass'); $cm->setShardKey(array('id' => 'asc')); $this->assertTrue($cm->isSharded()); }