This file contains 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
{% 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") %} |
This file contains 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
$queryB = $this->createQueryBuilder("p"); | |
if (!is_null($searchable["num"])) { | |
$queryB->having("count(p.personMovieRef) > :num") | |
->setParameter("num",$searchable["num"]); | |
} |
This file contains 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
$.ajax({ | |
data:filter.serialize(), | |
type: "GET", | |
url: postURL, |
This file contains 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
{% macro sortedClass(pagination,name) %} | |
{% if pagination.isSorted(name) %} | |
{% spaceless %} | |
sorted | |
{% endspaceless %} | |
{% endif %} | |
{% endmacro %} |
This file contains 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
/** | |
* @var \AppBundle\Entity\Person | |
* | |
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\Person") | |
* @ORM\JoinColumns({ | |
* @ORM\JoinColumn(name="person_id", referencedColumnName="id") | |
* }) | |
*/ | |
private $person; |
This file contains 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
<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> |
This file contains 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
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, |
This file contains 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 | |
/** | |
* Created by IntelliJ IDEA. | |
* User: rgr | |
* Date: 24/09/17 | |
* Time: 13:29 | |
*/ | |
// src/AppBundle/Admin/CategoryAdmin.php | |
namespace AppBundle\Admin; |
This file contains 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
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 |
This file contains 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
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 |