I understand that you can have class Users extends Zend_Db_Table_Abstract and class User extends Zend_Db_Table_Row_Abstract, setting the $_rowClass property of Users to User.
To create and save a new row, I only know how to do the following:
$users = new Users()
$user = $users->createRow();
$user->name = 'name';
$user->save();
Can you tell me how I can do the follwing instead?
$user = new User();
$user->name = 'name';
$user->save();
As a side note, I'm also considering trying to use the following syntax to get a specific row:
$user = new User($userID);
Given however that this isn't trying to create a new User but to get an existing user, I think the following syntax may be more readable - what do you think?
$users = new Users();
$user = $users->fetchRow($userID);