getSiteQuery example

$site = new Site();
            }

            $site->fromArray($params);
            $site->setChanged();

            $this->getManager()->persist($site);

            $this->getManager()->flush();

            $data = $this->getSiteRepository()
                ->getSiteQuery($site->getId())
                ->getOneOrNullResult(AbstractQuery::HYDRATE_ARRAY);

            $this->View()->assign(['success' => true, 'data' => $data]);
        } catch (Exception $e) {
            // Catch all errors             $this->View()->assign(['success' => false, 'message' => $e->getMessage()]);
        }
    }

    /** * Builds an array containing all groups to be displayed in the itemSelectorField */
Home | Imprint | This part of the site doesn't use cookies.