public function addFieldDefinition($contentTypeId, $status, FieldDefinition $fieldDefinition)
    {
        $storageFieldDef = new StorageFieldDefinition();
        $this->mapper->toStorageFieldDefinition($fieldDefinition, $storageFieldDef);
        $fieldDefinition->id = $this->contentTypeGateway->insertFieldDefinition(
            $contentTypeId,
            $status,
            $fieldDefinition,
            $storageFieldDef
        );
    }
public function addFieldDefinition($contentTypeId, $status, FieldDefinition $fieldDefinition)
    {
        $storageFieldDef = new StorageFieldDefinition();
        $this->mapper->toStorageFieldDefinition($fieldDefinition, $storageFieldDef);
        $fieldDefinition->id = $this->contentTypeGateway->insertFieldDefinition(
            $contentTypeId,
            $status,
            $fieldDefinition,
            $storageFieldDef
        );
    }
public function addFieldDefinition ( $ contentTypeId , $ status , FieldDefinition $ fieldDefinition ) { $ storageFieldDef = new StorageFieldDefinition ( ) ; $ this -> mapper -> toStorageFieldDefinition ( $ fieldDefinition , $ storageFieldDef ) ; $ fieldDefinition -> id = $ this -> contentTypeGateway -> insertFieldDefinition ( $ contentTypeId , $ status , $ fieldDefinition , $ storageFieldDef ) ; }
Adds a new field definition to an existing Type.

This method creates a new status of the Type with the $fieldDefinition
added. It does not update existing content objects depending on the
field (default) values.

@param mixed $contentTypeId
@param int $status One of Type::STATUS_DEFINED|Type::STATUS_DRAFT|Type::STATUS_MODIFIED
@param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition
Adds a new field definition to an existing Type .