You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my User Class (the same like what Symfony generate).
----
#[ORM\Column]
private bool $isVerified = false;
public function isVerified(): bool
{
return $this->isVerified;
}
public function setVerified(bool $isVerified): static
{
$this->isVerified = $isVerified;
return $this;
}
and config easyadmin to use:
public function configureFields(string $pageName): iterable
{
return [
IdField::new('id')->hideWhenCreating(),
EmailField::new('email'),
BooleanField::new('isVerified'),
];
}
I'm getting error when I'm trying to update the user.
The method "isVerified" in class "App\Entity\User" requires 0 arguments, but should accept only 1.. Make the property public, add a setter, or set the "mapped" field option in the form type to be false.
it's look the Easyadmin try to use isVerified method, instead of the "setVerified"
The text was updated successfully, but these errors were encountered:
HI.
I generate new User class via Symfony command.
php bin/console make:user
my User Class (the same like what Symfony generate).
and config easyadmin to use:
I'm getting error when I'm trying to update the user.
it's look the Easyadmin try to use isVerified method, instead of the "setVerified"
The text was updated successfully, but these errors were encountered: