zendframework/zf2 — pull request #4572 by joshribakoff (2013-06-01 21:39:54+00:00)
Title: Zend\Form Should throw exception if try to get() an element that does not exist

I'm one of your ZF1 certified engineers and this documentation is difficult to follow for me. In your 'getting started' guide, you did not call parent::__construct(). This made it so I can't even display my form. I couldn't find the documentation to do a pull request for that part

If you do this in your view:
echo $this->formRow($form->get('field_that_doesnt_exist'));

Instead of a helpful message like "trying to get() a field that doesnt exist", the obscure error message I actually got was:
"Catchable fatal error: Object of class Zend\Form\View\Helper\FormRow could not be converted to string"

This pull request will throw an exception if you try to get() an element that does not exist.