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
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,
ALTER TABLE person DROP FOREIGN KEY FK_34DCD1767E3C61F9;
ALTER TABLE person ADD CONSTRAINT FK_34DCD1767E3C61F9 FOREIGN KEY (owner_id) REFERENCES user (id)
{
"name": "rgr/vollfilm-new",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-4": {
"": "src/"
},
"classmap": [
"app/AppKernel.php",
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
$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">
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
.riley1 {
background-image: url(../images/spritesheets/sprite.png);
background-position: 0px 0px;
width: 546px;
height: 546px; }
private function renderFilteredPersonList(Request $request, QueryBuilder $queryB, $resetRoute)
{
$personForm = $this->createForm(PersonFilterType::class, null, [
'method' => 'GET'
]);
$personForm->handleRequest($request);
if ($personForm->get('reset')->isClicked()) {
$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()));
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');