There is a table of tasks, which can be an unlimited number of meta records. It would seem that a typical one-to-many (one-to-many task meta-records), but when I straight it indicates, Symphony swears by the collection (says The return type of method "getMeta" is invalid). But I need to take it a collection - a lot of meta-records!
* @ORM\OneToMany(targetEntity="App\Entity\TaskMeta", mappedBy="task")
public function getMeta() : ? \Collection
Besides, my relationship implies uniqueness, i.e., one meta-record can have only one task, but the task can be a lot of meta-records.
How to do? ManyToOne that allows you to return a collection that are not suitable, because it involves a lot of tasks to a single meta, and this is not my case.