teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

直し忘れの修正

2021/10/07 03:52

投稿

q_pix
q_pix

スコア3

title CHANGED
File without changes
body CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
  > In DebugClassLoader.php line 213:
36
36
 
37
- **The autoloader expected class "App\Entity\Message" to be defined in file "C:\xampp\htdocs\eccube2\vendor\composer
37
+ **The autoloader expected class "App\Entity\Message" to be defined in file "C:\xampp\htdocs\eccube\vendor\composer
38
38
  /../nesbot/carbon/src\App\Entity\Message.php". The file was found but the class was not in it, the class name or namespace probably has a typo.**
39
39
 
40
40
  //自動生成でtypoとか言われても…

3

プロジェクトの名前をわかりやすいものに変更

2021/10/07 03:52

投稿

q_pix
q_pix

スコア3

title CHANGED
File without changes
body CHANGED
@@ -19,7 +19,7 @@
19
19
  >** [ERROR] Only annotation mapping is supported by make:entity, but the <info>App\Entity\Message</info> class uses adifferent format. If you would like this command to generate the properties & getter/setter methods, add your mapping configuration, and then re-run this command with the <info>--regenerate</info> flag.**
20
20
 
21
21
  #####② 再生成を実行すると名前空間がないといわれる
22
- > C:\xampp\htdocs\eccube2>`php bin/console make:entity --regenerate`
22
+ > C:\xampp\htdocs\eccube>`php bin/console make:entity --regenerate`
23
23
  Class name of the entity to create or update (e.g. TinyGnome):
24
24
  > > `Message`
25
25
  created: vendor/nesbot/carbon/src/App/Entity/Message.php
@@ -30,7 +30,7 @@
30
30
  //自動生成なのに、フォーマットが違うとかいわれる
31
31
 
32
32
  #####③ パスを指定して再実行をやりなおすがやはりエラー
33
- > C:\xampp\htdocs\eccube2>`php bin/console make:entity --regenerate App\Entity\Message`
33
+ > C:\xampp\htdocs\eccube>`php bin/console make:entity --regenerate App\Entity\Message`
34
34
 
35
35
  > In DebugClassLoader.php line 213:
36
36
 

2

書式を整えて見やすく

2021/10/07 03:51

投稿

q_pix
q_pix

スコア3

title CHANGED
File without changes
body CHANGED
@@ -7,35 +7,35 @@
7
7
  Messageクラスのエンティティとリポジトリを作成(のみ)。
8
8
 
9
9
  ### 発生している問題・エラーメッセージ
10
- **① クラスのプロパティ設定が始まらず、再生成を求められる**
10
+ #####① クラスのプロパティ設定が始まらず、再生成を求められる
11
- > C:\xampp\htdocs\eccube>php bin/console make:entity
11
+ > C:\xampp\htdocs\eccube>`php bin/console make:entity`
12
12
  Class name of the entity to create or update (e.g. TinyGnome)://クラス名の入力
13
- > >Message
13
+ > >`Message`
14
14
  created: vendor/nesbot/carbon/src/App/Entity/Message.php
15
15
  created: vendor/nesbot/carbon/src/App/Repository/MessageRepository.php
16
16
 
17
17
  //ちゃんとファイルは作られてはいる。しかし直後に以下のエラー
18
18
 
19
- > [ERROR] Only annotation mapping is supported by make:entity, but the <info>App\Entity\Message</info> class uses adifferent format. If you would like this command to generate the properties & getter/setter methods, add your mapping configuration, and then re-run this command with the <info>--regenerate</info> flag.
19
+ >** [ERROR] Only annotation mapping is supported by make:entity, but the <info>App\Entity\Message</info> class uses adifferent format. If you would like this command to generate the properties & getter/setter methods, add your mapping configuration, and then re-run this command with the <info>--regenerate</info> flag.**
20
20
 
21
- **② 再生成を実行すると名前空間がないといわれる**
21
+ #####② 再生成を実行すると名前空間がないといわれる
22
- > C:\xampp\htdocs\eccube2>php bin/console make:entity --regenerate
22
+ > C:\xampp\htdocs\eccube2>`php bin/console make:entity --regenerate`
23
23
  Class name of the entity to create or update (e.g. TinyGnome):
24
- > > Message
24
+ > > `Message`
25
25
  created: vendor/nesbot/carbon/src/App/Entity/Message.php
26
26
  created: vendor/nesbot/carbon/src/App/Repository/MessageRepository.php
27
27
 
28
- > [ERROR] Only annotation mapping is supported by make:entity, but the <info>App\Entity\Message</info> class uses a different format. If you would like this command to generate the properties & getter/setter methods, add your mapping configuration, and then re-run this command with the <info>--regenerate</info> flag.
28
+ **[ERROR] Only annotation mapping is supported by make:entity, but the <info>App\Entity\Message</info> class uses a different format. If you would like this command to generate the properties & getter/setter methods, add your mapping configuration, and then re-run this command with the <info>--regenerate</info> flag.**
29
29
 
30
30
  //自動生成なのに、フォーマットが違うとかいわれる
31
31
 
32
- **③ パスを指定して再実行をやりなおすがやはりエラー**
32
+ #####③ パスを指定して再実行をやりなおすがやはりエラー
33
- > C:\xampp\htdocs\eccube2>php bin/console make:entity --regenerate App\Entity\Message
33
+ > C:\xampp\htdocs\eccube2>`php bin/console make:entity --regenerate App\Entity\Message`
34
34
 
35
35
  > In DebugClassLoader.php line 213:
36
36
 
37
- > The autoloader expected class "App\Entity\Message" to be defined in file "C:\xampp\htdocs\eccube2\vendor\composer
37
+ **The autoloader expected class "App\Entity\Message" to be defined in file "C:\xampp\htdocs\eccube2\vendor\composer
38
- /../nesbot/carbon/src\App\Entity\Message.php". The file was found but the class was not in it, the class name or namespace probably has a typo.
38
+ /../nesbot/carbon/src\App\Entity\Message.php". The file was found but the class was not in it, the class name or namespace probably has a typo.**
39
39
 
40
40
  //自動生成でtypoとか言われても…
41
41
 

1

二度目の入力コマンドに--regenerateを追加

2021/10/06 06:01

投稿

q_pix
q_pix

スコア3

title CHANGED
File without changes
body CHANGED
@@ -19,7 +19,7 @@
19
19
  > [ERROR] Only annotation mapping is supported by make:entity, but the <info>App\Entity\Message</info> class uses adifferent format. If you would like this command to generate the properties & getter/setter methods, add your mapping configuration, and then re-run this command with the <info>--regenerate</info> flag.
20
20
 
21
21
  **② 再生成を実行すると名前空間がないといわれる**
22
- > C:\xampp\htdocs\eccube2>php bin/console make:entity
22
+ > C:\xampp\htdocs\eccube2>php bin/console make:entity --regenerate
23
23
  Class name of the entity to create or update (e.g. TinyGnome):
24
24
  > > Message
25
25
  created: vendor/nesbot/carbon/src/App/Entity/Message.php