Skip to content

Instantly share code, notes, and snippets.

View rileyrg's full-sized avatar
💭
Emacs can replace PHPStorm

RichieHH rileyrg

💭
Emacs can replace PHPStorm
  • Hamburg, Germany
View GitHub Profile
{% macro isUserDisplay(template,value,errorTemplate) %}
{% import _self as h %}
{% if h.isUser() %}
{% if value is defined and value is not null %}
{{ value }}
{% else %}
{% include template %}
{% endif %}
{% else %}
{% include errorTemplate|default(":User:useronly.inform.html.twig") %}
$queryB = $this->createQueryBuilder("p");
if (!is_null($searchable["num"])) {
$queryB->having("count(p.personMovieRef) > :num")
->setParameter("num",$searchable["num"]);
}
$.ajax({
data:filter.serialize(),
type: "GET",
url: postURL,
{% macro sortedClass(pagination,name) %}
{% if pagination.isSorted(name) %}
{% spaceless %}
sorted
{% endspaceless %}
{% endif %}
{% endmacro %}
/**
* @var \AppBundle\Entity\Person
*
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\Person")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="person_id", referencedColumnName="id")
* })
*/
private $person;
<trans-unit id="b237971c20b2703f8095cb154ad0adfdf61796e3" resname="theatre.list">
<source>theatre.list</source>
<target>theatre.list</target>
<jms:reference-file line="71">/../src/AppBundle/Filter/PersonTheatreVitaeFilterType.php</jms:reference-file>
</trans-unit>
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper->add('firstName', 'text');
$formMapper->add('surname', 'text');
$formMapper->add(
'sex',
'choice',
array('choices' => [
"person.sex0" => 0,
"person.sex1" => 1,
<?php
/**
* Created by IntelliJ IDEA.
* User: rgr
* Date: 24/09/17
* Time: 13:29
*/
// src/AppBundle/Admin/CategoryAdmin.php
namespace AppBundle\Admin;
services:
# default configuration for services in *this* file
_defaults:
# automatically injects dependencies in your services
autowire: true
# automatically registers your services as commands, form types, etc.
autoconfigure: true
# this means you cannot fetch services directly from the container via $container->get()
# if you need to do this, you can override this setting on individual services
public: false
services:
# default configuration for services in *this* file
_defaults:
# automatically injects dependencies in your services
autowire: true
# automatically registers your services as commands, form types, etc.
autoconfigure: true
# this means you cannot fetch services directly from the container via $container->get()
# if you need to do this, you can override this setting on individual services
public: false