Answer the question
In order to leave comments, you need to log in
Why the system does not allow to delete the user?
I'm trying to delete a user in symphony
if($userOriginal === $userDoubleCheck){
$entityManager = $this->getDoctrine()->getManager();
$entityManager->remove($userDoubleCheck);
$entityManager->flush();
/** @see \Serializable::serialize() */
public function serialize()
{
return serialize(array(
$this->id,
$this->username,
$this->password,
// $this->roles,
// see section on salt below
// $this->salt,
));
}
/** @see \Serializable::unserialize() */
public function unserialize($serialized)
{
list (
$this->id,
$this->username,
$this->password,
// $this->roles,
// see section on salt below
// $this->salt
) = unserialize($serialized, array('allowed_classes' => false));
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question