deleteOldTags example

public function saveBlogArticleAction()
    {
        $params = $this->Request()->getParams();

        $id = (int) $this->Request()->getParam('id');

        if (!empty($id)) {
            // Edit Data             /** @var Blog $blogModel */
            $blogModel = $this->getManager()->getRepository(Blog::class)->find($id);
            // Deletes all old blog tags             $this->deleteOldTags($id);
        } else {
            // New Data             $blogModel = new Blog();
        }
        // Setting the date in this way cause ext js got no datetime field         $params['displayDate'] = $params['displayDate'] . ' ' . $params['displayTime'];

        if (!$params['shopIds']) {
            $params['shopIds'] = null;
        }

        
Home | Imprint | This part of the site doesn't use cookies.