Neos\Flow\Reflection\ClassSchema::isPropertyTransient PHP Method

isPropertyTransient() public method

If a certain class schema property is to disregarded for persistence
public isPropertyTransient ( string $propertyName ) : boolean
$propertyName string Name of the property
return boolean
    public function isPropertyTransient($propertyName)
    {
        return $this->properties[$propertyName]['transient'];
    }

Usage Example

 /**
  * @test
  */
 public function isPropertyTransientReturnsAttributeForAddedProperties()
 {
     $classSchema = new ClassSchema('SomeClass');
     $classSchema->addProperty('a', 'Neos\\Flow\\SomeObject');
     $classSchema->addProperty('b', 'Neos\\Flow\\SomeObject', false, true);
     $this->assertFalse($classSchema->isPropertyTransient('a'));
     $this->assertTrue($classSchema->isPropertyTransient('b'));
 }