Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony][SF2][Symfony2]Doctrine Entity Provider, problem
gentleman
post
Post #1





Grupa: Zarejestrowani
Postów: 41
Pomógł: 1
Dołączył: 17.05.2013

Ostrzeżenie: (0%)
-----


Witam, chciałbym załadować uzytkowników do logowania, ale podczas generowania entity wyrzuca bład.

  1. <?php
  2. namespace Acme\AccountBundle\Entity;
  3.  
  4. use Symfony\Component\Security\Core\User\UserInterface;
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /*
  8.  * @ORM\Entity
  9.  */
  10. class User implements UserInterface
  11. {
  12. /**
  13.   * @ORM\Id
  14.   * @ORM\Column(type="integer")
  15.   * @ORM\GeneratedValue(strategy="AUTO")
  16.   */
  17. protected $id;
  18. /**
  19.   * @ORM\Column(type="string", length="100")
  20.   */
  21. protected $username;
  22. /**
  23.   * @ORM\Column(type="string", length="255")
  24.   */
  25. protected $password;
  26. /**
  27.   * @ORM\Column(type="string", length="20")
  28.   */
  29. protected $role;
  30. /**
  31.   * @ORM\Column(type="string", length="32")
  32.   */
  33. protected $salt;
  34.  
  35. }


bład.
Kod
Fatal error: Class Acme\AccountBundle\Entity\User contains 5 abstract methods and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Security\Core\User\UserInterface::getRoles, Symfony\Component\Security\Core\User\UserInterface::getPassword, Symfony\Component\Security\Core\User\UserInterface::getSalt, ...) in /workspace/symfony-test/src/Acme/AccountBundle/Entity/User.php on line 35

nie rozumiem o co chodzi, wytłumaczy mi ktoś ?

Ten post edytował gentleman 22.07.2013, 19:44:11
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 15:19