コード例 #1
0
 public function testSetEmbedable()
 {
     $this->assertIsFluent($this->builder->setEmbeddable());
     $this->assertTrue($this->cm->isEmbeddedClass);
     $this->assertFalse($this->cm->isMappedSuperclass);
 }
コード例 #2
0
ファイル: EmbeddableMapper.php プロジェクト: guiwoda/fluent
 /**
  * @param ClassMetadataBuilder $metadata
  */
 public function setType(ClassMetadataBuilder $metadata)
 {
     $metadata->setEmbeddable();
 }
コード例 #3
0
ファイル: BuilderTest.php プロジェクト: guiwoda/fluent
 public function test_cannot_add_big_increments_to_embeddable()
 {
     $this->builder->setEmbeddable();
     $this->setExpectedException(LogicException::class);
     $this->fluent->bigIncrements('id');
 }