I have this class Zgh\FEBundle\Entity\User
which extends FOS\UserBundle\Model\User
.
use FOS\UserBundle\Model\User as BaseUser;
class User extends BaseUser implements ParticipantInterface
{
use BasicInfo;
// ..
}
And BaseUser
class:
abstract class User implements UserInterface, GroupableInterface
{
protected $id;
// ..
}
And BaseInfo
trait:
trait BasicInfo
{
/**
* @ORM\Column(type="string", length=255)
* @ORM\Id
* @ORM\GeneratedValue(strategy="NONE")
*/
protected $id;
// ..
}
But when I run my code i get this error:
Strict standards: FOS\UserBundle\Model\User and Zgh\FEBundle\Model\Partial\BasicInfo define the same property ($id) in the composition of Zgh\FEBundle\Entity\User. This might be incompatible, consider using accessor methods in traits instead.
I'm using Symfony framework.
Is there anyway to resolve this conflict between the trait and the parent class object about this property ?