protected function _actionAdd(AnCommandContext $context)
    {
        $data = $context->data;

        return $this->getRepository()->create($data->toArray());
    }
protected function _actionAdd(AnCommandContext $context)
    {
        $data = $context->data;

        return $this->getRepository()->create($data->toArray());
    }
protected function _actionAdd ( AnCommandContext $ context ) { $ data = $ context -> data ; return $ this -> getRepository ( ) -> create ( $ data -> toArray ( ) ) ; }
Creates a new story. This is an internal method and can not be
called from outside.

Check
ComStoriesControllerPermissionStory::canAdd

(non-PHPdoc)

@see ComBaseControllerService::_actionAdd()
Creates a new story . This is an internal method and can not be called from outside .