File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ that forces it to have a ``getRole()`` method::
481
481
* @ORM\Table(name="acme_groups")
482
482
* @ORM\Entity()
483
483
*/
484
- class Group implements RoleInterface, \Serializable
484
+ class Group implements RoleInterface
485
485
{
486
486
/**
487
487
* @ORM\Column(name="id", type="integer")
@@ -519,30 +519,6 @@ that forces it to have a ``getRole()`` method::
519
519
{
520
520
return $this->role;
521
521
}
522
-
523
- /**
524
- * @see \Serializable::serialize()
525
- */
526
- public function serialize()
527
- {
528
- return serialize(array(
529
- $this->id,
530
- $this->name,
531
- $this->role,
532
- ));
533
- }
534
-
535
- /**
536
- * @see \Serializable::unserialize()
537
- */
538
- public function unserialize($serialized)
539
- {
540
- list(
541
- $this->id,
542
- $this->name,
543
- $this->role,
544
- ) = unserialize($serialized);
545
- }
546
522
}
547
523
548
524
To improve performances and avoid lazy loading of groups when retrieving a user
You can’t perform that action at this time.
0 commit comments