src/CoreBundle/Controller/Backend/AbstractAddAllController.php
private function perform($table, Request $request, $metaModel, $parentId)
    {
        $activate = (bool) $request->request->get('activate');

        $query = $this
            ->connection
            ->createQueryBuilder()
            ->insert($table);
        foreach ($metaModel->getAttributes() as $attribute) {
            if ($this->knowsAttribute($attribute)
                || !($this->accepts($attribute) && $this->isAttributeSubmitted($attribute->get('id'), $request))
            ) {
                continue;
            }
            $data = [];
            foreach ($this->createEmptyDataFor($attribute, $parentId, $activate, $this->startSort) as $key => $value) {
                $data[$key] = ':' . $key;
                $query->setParameter($key, $value);
            }
            $query->values($data)->execute();
            $this->startSort += 128;
        }
        $this->purger->purge();
    }
private function perform($table, Request $request, $metaModel, $parentId)
    {
        $activate = (bool) $request->request->get('activate');

        $query = $this
            ->connection
            ->createQueryBuilder()
            ->insert($table);
        foreach ($metaModel->getAttributes() as $attribute) {
            if ($this->knowsAttribute($attribute)
                || !($this->accepts($attribute) && $this->isAttributeSubmitted($attribute->get('id'), $request))
            ) {
                continue;
            }
            $data = [];
            foreach ($this->createEmptyDataFor($attribute, $parentId, $activate, $this->startSort) as $key => $value) {
                $data[$key] = ':' . $key;
                $query->setParameter($key, $value);
            }
            $query->values($data)->execute();
            $this->startSort += 128;
        }
        $this->purger->purge();
    }
Perform addition now.

@param string     $table     The table.
@param Request    $request   The request.
@param IMetaModel $metaModel The MetaModel.
@param string     $parentId  The parent id.

@return void