Neos\Flow\Property\PropertyMappingConfiguration::allowAllProperties PHP Метод

allowAllProperties() публичный Метод

Allow all properties in property mapping, even unknown ones.
public allowAllProperties ( ) : PropertyMappingConfiguration
Результат PropertyMappingConfiguration this
    public function allowAllProperties()
    {
        $this->mapUnknownProperties = true;
        return $this;
    }

Usage Example

 /**
  * @test
  * @covers \Neos\Flow\Property\PropertyMappingConfiguration::shouldMap
  */
 public function shouldMapReturnsTrueIfConfigured()
 {
     $this->propertyMappingConfiguration->allowAllProperties();
     $this->assertTrue($this->propertyMappingConfiguration->shouldMap('someSourceProperty'));
     $this->assertTrue($this->propertyMappingConfiguration->shouldMap('someOtherSourceProperty'));
 }
All Usage Examples Of Neos\Flow\Property\PropertyMappingConfiguration::allowAllProperties