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
CREATE TABLE `person` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`first_name` varchar(150) DEFAULT NULL, | |
`surname` varchar(150) DEFAULT NULL, | |
`stripped_title` varchar(255) DEFAULT NULL, | |
`is_actor` tinyint(1) DEFAULT NULL, | |
`sex` int(11) DEFAULT NULL, | |
`date_of_birth` int(11) DEFAULT NULL, | |
`date_of_death` int(11) DEFAULT NULL, | |
`person_type` int(11) DEFAULT NULL, |
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
ALTER TABLE person DROP FOREIGN KEY FK_34DCD1767E3C61F9; | |
ALTER TABLE person ADD CONSTRAINT FK_34DCD1767E3C61F9 FOREIGN KEY (owner_id) REFERENCES user (id) |
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
{ | |
"name": "rgr/vollfilm-new", | |
"license": "proprietary", | |
"type": "project", | |
"autoload": { | |
"psr-4": { | |
"": "src/" | |
}, | |
"classmap": [ | |
"app/AppKernel.php", |
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
bootstrap-panels$ composer require symfony/serializer | |
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug | |
Using version ^3.3 for symfony/serializer | |
./composer.json has been updated | |
Loading composer repositories with package information | |
Updating dependencies (including require-dev) | |
Your requirements could not be resolved to an installable set of packages. | |
Problem 1 | |
- Conclusion: don't install symfony/serializer v3.3.2 |
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
$serializer = $this->container->get('jms_serializer'); | |
$xml=$serializer->serialize($personForm, "xml"); //also for json | |
{"children":{"firstName":{"children":{"condition_pattern":{},"text":{}}},"surname":{"children":{"condition_pattern":{},"text":{}}},"isActor":{},"dateOfBirth":{},"eyeColor":{},"hairColor":{},"adressData":{"children":{"street":{"children":{"condition_pattern":{},"text":{}}},"city":{"children":{"condition_pattern":{},"text":{}}},"country":{}}},"adminAdressData":{"children":{"street":{"children":{"condition_pattern":{},"text":{}}},"city":{"children":{"condition_pattern":{},"text":{}}},"country":{}}}}} | |
<?xml version="1.0" encoding="UTF-8"?> | |
<form name="person_filter"> | |
<errors/> | |
<form name="firstName"> |
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
rgr (192.168.2.111)@[vollfilm-new] bootstrap-panels$ composer require symfony/serializer | |
Cannot load Xdebug - it was already loaded | |
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug | |
Using version ^3.3 for symfony/serializer | |
./composer.json has been updated | |
Loading composer repositories with package information | |
Updating dependencies (including require-dev) | |
Your requirements could not be resolved to an installable set of packages. | |
Problem 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
.riley1 { | |
background-image: url(../images/spritesheets/sprite.png); | |
background-position: 0px 0px; | |
width: 546px; | |
height: 546px; } |
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
private function renderFilteredPersonList(Request $request, QueryBuilder $queryB, $resetRoute) | |
{ | |
$personForm = $this->createForm(PersonFilterType::class, null, [ | |
'method' => 'GET' | |
]); | |
$personForm->handleRequest($request); | |
if ($personForm->get('reset')->isClicked()) { |
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
$personForm = $this->createForm(PersonFilterType::class, null, [ | |
'action' => $resetLink, | |
'method' => 'GET' | |
]); | |
if ($request->query->has($personForm->getName())) { | |
if (!$personForm->get('reset')->isClicked()) { | |
$personForm->submit($request->query->get($personForm->getName())); |
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())) { | |
if (!$personForm->get('reset')->isClicked()) { | |
$personForm->submit($request->query->get($personForm->getName())); | |
}else{ | |
$request->query->remove($request->query->get($personForm->getName())); | |
} | |
$qb_updater = $this->get('lexik_form_filter.query_builder_updater'); |