Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 102 Pomógł: 0 Dołączył: 10.01.2010 Ostrzeżenie: (0%)
|
Witam Serdecznie mam taki problem:
Cytat MappingException: The class 'Acme\UserBundle\Entity\User' was not found in the chain configured namespaces FOS\UserBundle\Entity, FOS\UserBundle\Model Mój plik Acme\UserBundle\Entity\User Kod <?php // src/Acme/UserBundle/Entity/User.php namespace Acme\UserBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** @ORM\Entity @ORM\Table(name="fos_user") / class User extends BaseUser { /* @ORM\Id @ORM\Column(type="integer") @ORM\GeneratedValue(strategy="AUTO") */ protected $id; public function __construct() { parent::__construct(); // your own logic } } Zauważyłem, że podczas generowania tabeli Kod php app/console doctrine:schema:create nie tworzy nawet tabeli Totalnie nie wiem o co chodzi (IMG:style_emoticons/default/smile.gif) |
|
|
|
meehow18 [PHP][SYMFONY2] FOS USER BUNDLE 12.08.2014, 08:30:36
kosmos Z czystej ciekawości ... dlaczego dziedziczysz po ... 12.08.2014, 10:06:38 
pabito Cytat(kosmos @ 12.08.2014, 11:06:38 )... 12.08.2014, 10:26:23 
kosmos Cytat(pabito @ 12.08.2014, 11:26:23 )... 12.08.2014, 11:05:22
semafor1985 dodałeś swoją klasę User w app/config.yml ? 12.08.2014, 10:18:56
ohm Całego bundla Acme też utworzyłeś przez generate:b... 12.08.2014, 10:31:34
meehow18 ok, dobra poradziłem sobie. Po prostu nie dodałem ... 12.08.2014, 11:58:40 ![]() ![]() |
|
Aktualny czas: 21.12.2025 - 16:50 |