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
if ($request->query->has($personForm->getName())) { | |
$personForm->submit($request->query->get($personForm->getName())); | |
if ($personForm->get('reset')->isClicked()) { | |
$request->query->remove("person_filter"); | |
$this->redirect($resetLink); | |
} |
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
class NameFilterType extends AbstractType | |
{ | |
//todo NOT USED as wont map to the person object | |
public function buildForm(FormBuilderInterface $builder, array $options) | |
{ | |
$builder | |
->add('firstName', TextFilterType::class, [ |
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
<div class="shrink30 container"> | |
<a href="#search" data-toggle="collapse"> | |
<h3> | |
{{ m.trans('filter.search') }}{% include ":fragments/glyphs:search.html.twig" %} | |
</h3> | |
</a> | |
<div id="search" class="row collapse"> | |
<div class="col-xs-12"> | |
<form method="get" action={{ filterlink }}> | |
{{ form_start(personForm) }} |
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
->add("eyeColor", EntityType::class, [ | |
'required' => false, | |
'class' => 'AppBundle\Entity\EyeColor', | |
'placeholder' => 'Choose an eye color', | |
"label" => "person.eyecolour", | |
'query_builder' => function (EyeColourRepository $repo) { | |
return $repo->createAlphaEyeColours(); | |
}, | |
]) |
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
// parameters to template | |
return $this->render( | |
'person/list.html.twig', | |
array( | |
'filterlink' => $filterlink, | |
'personForm' => $personForm->createView(), | |
'pagination' => $pagination | |
) | |
); |
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
if (sizeof($eyeColours) == 1) { | |
$queryBuilder->where("e.name = ?0"); | |
} else { | |
/*** | |
foreach ($eyeColours as $key => $value) { | |
} | |
***/ | |
$queryBuilder->where($queryBuilder->expr()->orX( |
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
{# @controller AppBundle:Person:list #} | |
{% extends 'base.html.twig' %} | |
{% set paginationIcon = pagination.direction == "asc" ? "fa-sort-asc" : pagination.direction == "desc" ? "fa-sort-desc" : "fa-sort" %} | |
{% block body %} | |
{{ parent() }} | |
{% if form is not null %} | |
<form method="get" action="{{ path('actors_list') }}"> | |
{{ form_rest(form) }} |
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
SELECT id | |
FROM table_one | |
WHERE id NOT IN ( SELECT id FROM table_two ) |
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
2017-02-14 14:31:13 139778226750016 [ERROR] Plugin 'innodb' already installed | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Using mutexes to ref count buffer pool pages | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: The InnoDB memory heap is disabled | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Compressed tables use zlib 1.2.8 | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Using Linux native AIO | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Using SSE crc32 instructions | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Initializing buffer pool, size = 128.0M | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Completed initialization of buffer pool |
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
2017-02-14 14:31:13 139778226750016 [ERROR] Plugin 'innodb' already installed | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Using mutexes to ref count buffer pool pages | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: The InnoDB memory heap is disabled | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Compressed tables use zlib 1.2.8 | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Using Linux native AIO | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Using SSE crc32 instructions | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Initializing buffer pool, size = 128.0M | |
2017-02-14 14:31:13 139778226750016 [Note] InnoDB: Completed initialization of buffer pool |