public function testSetEmbedable()
 {
     $this->assertIsFluent($this->builder->setEmbeddable());
     $this->assertTrue($this->cm->isEmbeddedClass);
     $this->assertFalse($this->cm->isMappedSuperclass);
 }
Exemplo n.º 2
0
 /**
  * @param ClassMetadataBuilder $metadata
  */
 public function setType(ClassMetadataBuilder $metadata)
 {
     $metadata->setEmbeddable();
 }
Exemplo n.º 3
0
 public function test_cannot_add_big_increments_to_embeddable()
 {
     $this->builder->setEmbeddable();
     $this->setExpectedException(LogicException::class);
     $this->fluent->bigIncrements('id');
 }