I'm wondering why in Zend_Db you have to use the createRow method to get a new, empty Row object, rather than just instantiating the Row object directly.
For instance, if I've extended the default classes to create my own User table and row classes, then in order to create a new row object I always have to do the following to create a new Row object:
$userTable = new App_Table_User();
$userRow = $userTable->createRow();
$userRow->setName('bob');
$userRow->save();
But to me it makes more sense to be able to just say:
$userRow = new App_Row_User();
$userRow->setName('bob');
$userRow->save();
I understand that I can always build this functionality into my Row classes that extend Zend_Db_Table_Row_Abstract
, but I'm wondering if there's a specific reason that the Zend Framework team didn't just make this the default?