public function createGroupFromCreateStruct(GroupCreateStruct $struct)
    {
        $group = new Group();

        $group->name = $struct->name;

        // $group->description is intentionally left out, since DB structure does not support it, yet

        $group->identifier = $struct->identifier;
        $group->created = $struct->created;
        $group->modified = $struct->modified;
        $group->creatorId = $struct->creatorId;
        $group->modifierId = $struct->modifierId;

        return $group;
    }
public function createGroupFromCreateStruct(GroupCreateStruct $struct)
    {
        $group = new Group();

        $group->name = $struct->name;

        // $group->description is intentionally left out, since DB structure does not support it, yet

        $group->identifier = $struct->identifier;
        $group->created = $struct->created;
        $group->modified = $struct->modified;
        $group->creatorId = $struct->creatorId;
        $group->modifierId = $struct->modifierId;

        return $group;
    }
public function createGroupFromCreateStruct ( GroupCreateStruct $ struct ) { $ group = new Group ( ) ; $ group -> name = $ struct -> name ; // $group->description is intentionally left out, since DB structure does not support it, yet $ group -> identifier = $ struct -> identifier ; $ group -> created = $ struct -> created ; $ group -> modified = $ struct -> modified ; $ group -> creatorId = $ struct -> creatorId ; $ group -> modifierId = $ struct -> modifierId ; return $ group ; }
Creates a Group from its create struct.

@param \eZ\Publish\SPI\Persistence\Content\Type\Group\CreateStruct $struct

@todo $description is not supported by database, yet

@return Group
Creates a Group from its create struct .