How can I use the built-in count constraint on a OneToMany relation to validate a new child entity?

前端 未结 0 1079
盖世英雄少女心
盖世英雄少女心 2021-01-19 08:41

A parent entity has a one-to-many relationship with a child entity, like this:

/**
 * @ORM\\OneToMany(targetEntity=Child::class, mappedBy="parent")
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题