src/Model/Aggregate/AggregateRootType.php
public function getDefaultAttributes()
    {
        $default_attributes = [
            new TextAttribute('identifier', $this),
            new IntegerAttribute('revision', $this, [ 'default_value' => 0 ]),
            new UuidAttribute('uuid', $this, [ 'default_value' => 'auto_gen' ]),
            new TextAttribute('language', $this, [ 'default_value' => 'de_DE' ]),
            new IntegerAttribute('version', $this, [ 'default_value' => 1 ]),
            new TextAttribute('workflow_state', $this),
            new KeyValueListAttribute('workflow_parameters', $this)
        ];

        if ($this->isHierarchical()) {
            $default_attributes[] = new TextAttribute('parent_node_id', $this);
        }

        $default_attributes_map = new AttributeMap($default_attributes);
        return parent::getDefaultAttributes()->append($default_attributes_map);
    }
public function getDefaultAttributes()
    {
        $default_attributes = [
            new TextAttribute('identifier', $this),
            new IntegerAttribute('revision', $this, [ 'default_value' => 0 ]),
            new UuidAttribute('uuid', $this, [ 'default_value' => 'auto_gen' ]),
            new TextAttribute('language', $this, [ 'default_value' => 'de_DE' ]),
            new IntegerAttribute('version', $this, [ 'default_value' => 1 ]),
            new TextAttribute('workflow_state', $this),
            new KeyValueListAttribute('workflow_parameters', $this)
        ];

        if ($this->isHierarchical()) {
            $default_attributes[] = new TextAttribute('parent_node_id', $this);
        }

        $default_attributes_map = new AttributeMap($default_attributes);
        return parent::getDefaultAttributes()->append($default_attributes_map);
    }
public function getDefaultAttributes ( ) { $ default_attributes = [ new TextAttribute ( 'identifier' , $ this ) , new IntegerAttribute ( 'revision' , $ this , [ 'default_value' => 0 ] ) , new UuidAttribute ( 'uuid' , $ this , [ 'default_value' => 'auto_gen' ] ) , new TextAttribute ( 'language' , $ this , [ 'default_value' => 'de_DE' ] ) , new IntegerAttribute ( 'version' , $ this , [ 'default_value' => 1 ] ) , new TextAttribute ( 'workflow_state' , $ this ) , new KeyValueListAttribute ( 'workflow_parameters' , $ this ) ] ; if ( $ this -> isHierarchical ( ) ) { $ default_attributes [ ] = new TextAttribute ( 'parent_node_id' , $ this ) ; } $ default_attributes_map = new AttributeMap ( $ default_attributes ) ; return parent :: getDefaultAttributes ( ) -> append ( $ default_attributes_map ) ; }
Returns the default attributes that are initially added to a aggregate_root_type upon creation.

@return array A list of AttributeInterface implementations.
Returns the default attributes that are initially added to a aggregate_root_type upon creation .