我实际上正在学习 Symfony3,更准确地说是对象之间的 Doctrine2 关系,我想知道当你不明确时是否有级联参数的默认值。
我在教程中看到需要使用未指定参数的删除值,但没有关于这个事实的解释。
所以我的意思是这是
/**
* @ORM\ManyToOne(targetEntity="UTM\ForumBundle\Entity\UtmWebsiteTopics")
* @ORM\JoinColumn(nullable=false)
*/
private $topic;
相当于?
/**
* @ORM\ManyToOne(targetEntity="UTM\ForumBundle\Entity\UtmWebsiteTopics", cascade={"remove"})
* @ORM\JoinColumn(nullable=false)
*/
private $topic;
感谢您的阅读,希望您能给我一个答案。:D