<?php $s = $container->get('serializer'); $r = $s->normalize($entity); $json = $s->serialize($entity, 'json');json へのシリアライズも簡単
| <?php | |
| /** @noinspection PhpUnused */ | |
| namespace App\DQL; | |
| use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
| use Doctrine\ORM\Query\Lexer; | |
| use Doctrine\ORM\Query\Parser; | |
| use Doctrine\ORM\Query\QueryException; |
https://symfony.com/doc/current/validation.html
| # Postgresqlに接続できなくなった時 | |
| ```bash | |
| rm /usr/local/var/postgres/postmaster.pid | |
| ``` |
Symfony のセキュリティ
Security の指示に従ってインストール
security-bundle も最初から入っている
| displayTpl : [ | |
| '<tpl for=".">', | |
| '{[typeof values === "string" ? values : values["id"]]}', | |
| " : ", | |
| '{[typeof values === "string" ? values : values["name"]]}', | |
| '<tpl if="xindex < xcount">, </tpl>', | |
| '</tpl>' | |
| ], |
| Ext.define("MyApp.view.edit.Edit",{ | |
| extend: "Ext.form.Panel", | |
| xtype: 'myedit', | |
| viewModel: { | |
| type: "edit-edit" | |
| }, | |
| bodyPadding: 10, |