/**
* @param Post $post
* @param \Doctrine\Common\Collections\ArrayCollection<\your\namespace\Model\Tag> $tag
*/
public function setTagsAction(Post $post, $tags) { ...
afaik Doctrine will convert your array to a Collection Holding Objects mapped by the provided array
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With