I came back with another symfony problem.
code:
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Doctrine\ORM\EntityManager; class User { protected $id; protected $email; protected $alias; protected $password; protected $created_at; protected $updated_at; protected $currency; protected $alternative_currency; protected $level; protected $exp; protected $activation_code; protected $recovery_key; protected $recovery_time; protected $tutorial; protected $last_zone; protected $chat_status; protected $remember_me; protected $em; public function getId() { return $this->id; } public function setEmail($email) { $this->email = $email; return $this; } public function getEmail() { return $this->email; } public function setAlias($alias) { $this->alias = $alias; return $this; } public function getAlias() { return $this->alias; } public function setPassword($password) { $this->password = $password; return $this; } public function getPassword() { return $this->password; } public function setCreatedAt($createdAt) { $this->created_at = $createdAt; return $this; } public function getCreatedAt() { return $this->created_at; } public function setUpdatedAt($updatedAt) { $this->updated_at = $updatedAt; return $this; } public function getUpdatedAt() { return $this->updated_at; } public function setCurrency(\int $currency) { $this->currency = $currency; return $this; } public function getCurrency() { return $this->currency; } public function setAlternativeCurrency(\int $alternativeCurrency) { $this->alternative_currency = $alternativeCurrency; return $this; } public function getAlternativeCurrency() { return $this->alternative_currency; } public function setLevel(\int $level) { $this->level = $level; return $this; } public function getLevel() { return $this->level; } public function setExp(\int $exp) { $this->exp = $exp; return $this; } public function getExp() { return $this->exp; } public function setActivationCode($activationCode) { $this->activation_code = $activationCode; return $this; } public function getActivationCode() { return $this->activation_code; } public function setRecoveryKey($recoveryKey) { $this->recovery_key = $recoveryKey; return $this; } public function getRecoveryKey() { return $this->recovery_key; } public function setRecoveryTime($recoveryTime) { $this->recovery_time = $recoveryTime; return $this; } public function getRecoveryTime() { return $this->recovery_time; } public function setTutorial(\int $tutorial) { $this->tutorial = $tutorial; return $this; } public function getTutorial() { return $this->tutorial; } public function setLastZone(\int $lastZone) { $this->last_zone = $lastZone; return $this; } public function getLastZone() { return $this->last_zone; } public function setChatStatus(\int $chatStatus) { $this->chat_status = $chatStatus; return $this; } public function getChatStatus() { return $this->chat_status; } }
I tried swtiching from double apostrophe to single, everything is built in accordance with symfony rules, all types are lowercase. Another problem, I can not find a solution to it.
source share