This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Sonata\UserBundle\Admin; | |
use Sonata\UserBundle\Admin\Model\UserAdmin as SonataUserAdmin; | |
use Sonata\AdminBundle\Datagrid\ListMapper; | |
class UserAdmin extends SonataUserAdmin | |
{ | |
protected function configureListFields(ListMapper $listMapper) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Sonata\UserBundle\Admin; | |
use Sonata\UserBundle\Admin\Model\UserAdmin as SonataUserAdmin; | |
use Sonata\AdminBundle\Datagrid\DatagridMapper; | |
class UserAdmin extends SonataUserAdmin | |
{ | |
protected function configureDatagridFilters(DatagridMapper $filterMapper) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @ORM\Entity | |
* @ORM\Table(name="branches") | |
*/ | |
class Branch | |
{ | |
/** | |
* @ORM\OneToMany(targetEntity="Application\Sonata\UserBundle\Entity\User", mappedBy="branch") | |
* @ORM\OrderBy({"lastName" = "ASC", "firstName" = "ASC"}) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Plusquam\Bundle\ContractBundle\DoctrineExtensions\Query\Mysql; | |
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
use Doctrine\ORM\Query\AST\Literal; | |
use Doctrine\ORM\Query\Parser; | |
use Doctrine\ORM\Query\Lexer; | |
use Doctrine\ORM\Query\SqlWalker; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\DemoBundle\Admin; | |
use Sonata\AdminBundle\Admin\Admin; | |
class ElectricalEquipmentAdmin extends Admin | |
{ | |
public function getTemplate($name) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\DemoBundle\Admin; | |
use Sonata\AdminBundle\Admin\Admin; | |
use Sonata\AdminBundle\Datagrid\ListMapper; | |
class ContractAdmin extends Admin | |
{ | |
protected function configureListFields(ListMapper $listMapper) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\DemoBundle\Admin; | |
use Sonata\AdminBundle\Admin\Admin; | |
class FooAdmin extends Admin | |
{ | |
public function getTemplate($name) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Plusquam\Bundle\ContractBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
class Contract | |
{ | |
/** | |
* @ORM\OneToMany(targetEntity="TimekeepingEntry", mappedBy="contract", cascade={"persist"}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Sonata\UserBundle\Entity; | |
use Sonata\UserBundle\Entity\BaseUser as BaseUser; | |
//use FOS\UserBundle\Model\User as BaseUser; | |
//use Doctrine\Common\Collections\Collection; | |
use Gedmo\Mapping\Annotation as Gedmo; | |
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\DemoBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; |