मेरे पास यह कक्षा Zgh\FEBundle\Entity\User
है जो FOS\UserBundle\Model\User
फैली हुई है।लक्षण - मूल वर्ग के साथ संपत्ति संघर्ष
use FOS\UserBundle\Model\User as BaseUser;
class User extends BaseUser implements ParticipantInterface
{
use BasicInfo;
// ..
}
और BaseUser
वर्ग:
abstract class User implements UserInterface, GroupableInterface
{
protected $id;
// ..
}
और BaseInfo
विशेषता:
trait BasicInfo
{
/**
* @ORM\Column(type="string", length=255)
* @ORM\Id
* @ORM\GeneratedValue(strategy="NONE")
*/
protected $id;
// ..
}
लेकिन जब मैं अपने कोड को चलाने मैं इस त्रुटि मिलती है:
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.
मैं सिम्फनी फ्रैंक का उपयोग करना amework।
क्या इस संपत्ति के बारे में विशेषता और अभिभावक वर्ग वस्तु के बीच इस संघर्ष को हल करने के लिए वैसे भी है?
और सवाल यह है .... – marekful
@ MarcellFülöp मैंने प्रश्न अपडेट किया है। धन्यवाद। –