回答編集履歴

2

誤字

2019/04/05 05:28

投稿

xenbeat
xenbeat

スコア4258

test CHANGED
@@ -60,4 +60,4 @@
60
60
 
61
61
  ```query_builder```の部分を追加しているだけです。
62
62
 
63
- [SymfonyFormのEntityType](https://symfony.com/doc/2.8/reference/forms/types/entity.html)には[query-builderのオプションが渡せる](https://symfony.com/doc/2.8/reference/forms/types/entity.html#query-builder)ので、データを取ってきからPHPでソートするのではなく、**データを取ってくるときにSQLでソート**します。
63
+ [SymfonyFormのEntityType](https://symfony.com/doc/2.8/reference/forms/types/entity.html)には[query-builderのオプションが渡せる](https://symfony.com/doc/2.8/reference/forms/types/entity.html#query-builder)ので、データを取ってきからPHPでソートするのではなく、**データを取ってくるときにSQLでソート**します。

1

補足

2019/04/05 05:28

投稿

xenbeat
xenbeat

スコア4258

test CHANGED
@@ -60,4 +60,4 @@
60
60
 
61
61
  ```query_builder```の部分を追加しているだけです。
62
62
 
63
- [SymfonyFormのEntityType](https://symfony.com/doc/2.8/reference/forms/types/entity.html)には[query-builderのオプションが渡せる](https://symfony.com/doc/2.8/reference/forms/types/entity.html#query-builder)のでそこでソートします。
63
+ [SymfonyFormのEntityType](https://symfony.com/doc/2.8/reference/forms/types/entity.html)には[query-builderのオプションが渡せる](https://symfony.com/doc/2.8/reference/forms/types/entity.html#query-builder)ので、データを取ってきたからPHPでソートするのではなく、**データを取ってくるときにSQLでソート**します。