Ejemplo n.º 1
0
 /**
  * @test
  */
 public function setFieldsWithSourcesForbiddenValidateResult()
 {
     $fieldsNotToBindAutoToImplicitSource = ['fieldA', 'fieldB', 'fieldC'];
     $result = $this->classMetadata->setFieldsNotToBindAutoToImplicitSource($fieldsNotToBindAutoToImplicitSource);
     $this->assertSame($this->classMetadata, $result);
     $this->assertEquals($fieldsNotToBindAutoToImplicitSource, $this->classMetadata->getFieldsNotToBindAutoToImplicitSource());
 }
Ejemplo n.º 2
0
 public function prepare($object, ClassMetadata $metadata)
 {
     $this->reflectionClass = $metadata->getReflectionClass();
 }