Patch getModels() method in Model\Field class