Skip to content

Instantly share code, notes, and snippets.

import React from 'react'
import {Button, Card, Modal, OverlayTrigger, Tooltip} from 'react-bootstrap'
import {usePagination, useRowSelect, useSortBy, useTable} from 'react-table'
import UserService from "../service/userService";
import Loader from "../../shared/Loader";
import PerfectScrollbar from "perfect-scrollbar";
import moment from "moment";
import IndeterminateCheckbox from './IndeterminateCheckbox'
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
$offset = ( $page - 1 ) * $limit;
$qb = $this->_em->createQueryBuilder();
$qb->select(
'c'
, 'cf'
, 'p'
, 'pf'
,'partial uc.{id,displayName,picture}'
namespace Project\Entity;
use Application\Entity\AshAbstractEntity;
use Application\Entity\Filter\RemovedFilterInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="project_comments")
@andrconstruction
andrconstruction / Application.Entity.Brand.php
Created May 1, 2018 13:18 — forked from aronkerr/Application.Entity.Brand.php
ZF2 Form Collection Validation - Unique
<?php
namespace Application\Entity
class Brand
{
/**
* @var string
\*/
protected $name;
<?php
namespace Application\Form;
use Application\Entity\ProductDetails;
use Doctrine\Common\Persistence\ObjectManager;
use DoctrineModule\Stdlib\Hydrator\DoctrineObject as DoctrineHydrator;
use Zend\Form\Fieldset;
use Zend\InputFilter\InputFilterProviderInterface;