Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 270954d

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Recommend a better charset for MySQL Update create_form_type_extension.rst Update uid.rst
2 parents b2b1eb5 + 80c80db commit 270954d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

components/uid.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ entity primary keys::
149149
namespace App\Entity;
150150

151151
use Doctrine\ORM\Mapping as ORM;
152-
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
153152
use Symfony\Component\Uid\Uuid;
154153

155154
class User implements UserInterface
@@ -158,7 +157,7 @@ entity primary keys::
158157
* @ORM\Id
159158
* @ORM\Column(type="uuid", unique=true)
160159
* @ORM\GeneratedValue(strategy="CUSTOM")
161-
* @ORM\CustomIdGenerator(class=UuidGenerator::class)
160+
* @ORM\CustomIdGenerator(class="doctrine.uuid_generator")
162161
*/
163162
private $id;
164163

@@ -308,7 +307,6 @@ entity primary keys::
308307
namespace App\Entity;
309308

310309
use Doctrine\ORM\Mapping as ORM;
311-
use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator;
312310
use Symfony\Component\Uid\Ulid;
313311

314312
class Product
@@ -317,7 +315,7 @@ entity primary keys::
317315
* @ORM\Id
318316
* @ORM\Column(type="ulid", unique=true)
319317
* @ORM\GeneratedValue(strategy="CUSTOM")
320-
* @ORM\CustomIdGenerator(class=UlidGenerator::class)
318+
* @ORM\CustomIdGenerator(class="doctrine.ulid_generator")
321319
*/
322320
private $id;
323321

form/create_form_type_extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Specifically, you need to override the ``file_widget`` block:
192192

193193
{% block file_widget %}
194194
{{ block('form_widget') }}
195-
{% if image_url is not null %}
195+
{% if image_url is defined and image_url is not null %}
196196
<img src="{{ asset(image_url) }}"/>
197197
{% endif %}
198198
{% endblock %}

reference/configuration/doctrine.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The following block shows all possible configuration keys:
6262
unix_socket: /tmp/mysql.sock
6363
# the DBAL wrapperClass option
6464
wrapper_class: App\DBAL\MyConnectionWrapper
65-
charset: UTF8
65+
charset: utf8mb4
6666
logging: '%kernel.debug%'
6767
platform_service: App\DBAL\MyDatabasePlatformService
6868
server_version: '5.7'
@@ -96,7 +96,7 @@ The following block shows all possible configuration keys:
9696
memory="true"
9797
unix-socket="/tmp/mysql.sock"
9898
wrapper-class="App\DBAL\MyConnectionWrapper"
99-
charset="UTF8"
99+
charset="utf8mb4"
100100
logging="%kernel.debug%"
101101
platform-service="App\DBAL\MyDatabasePlatformService"
102102
server-version="5.7">

0 commit comments

Comments
 (0)