OK, I've found out:
This is because I was using the annotation FOS\RestBundle\Controller\Annotations\View, I've changed by returning my own view:
return $this->view($entities,Codes::HTTP_OK);
With an array, as hd.deman said.
And it works the way I want.