1
Ich musste eine Pokemongo API für meine Studien tun, und ich hasse PHP, aber ich will nicht 0/20 so .. Ich habe diesen Fehler, wenn ich Start:Symfony "UnexpectedValueException" Start Doktrin: Fixture: laden
php bin/console doctrine:fixtures:load
[UnexpectedValueException]
Could not determine how to assign last_login to a AppBundle\Entity\User\User object
ich verstehe nicht .. hier ist die user.yml:
AppBundle\Entity\User\User:
Matt:
username: 'Matt'
email: 'matgmail.com'
enabled: true
password: 'trololopokemon'
last_login: '<dateTimeBetween("-200 days", "now")>'
level: 1
xp: 1000
team: 'red'
Mika:
username: 'mickaelTurtle'
email: 'mickaelTurtle.com'
enabled: true
password: 'lifeislife'
last_login: '<dateTimeBetween("-200 days", "now")>'
level: 2
xp: 1200
team: 'blue'
Jean:
username: 'Jean'
email: 'jean.com'
enabled: true
password: 'jeanjean'
last_login: '<dateTimeBetween("-200 days", "now")>'
level: 3
xp: 100
team: 'yellow'
hier sind die Linien in meinem user.php:
/**
* @var \DateTime
*
* @ORM\Column(name="last_login", type="datetime")
*/
protected $lastLogin;
Kann mir jemand helfen?
hallo @AntoninMrchd sind Sie herzlich willkommen! Viel Glück mit Ihrem Studium – Matteo