Re: [fw-general] Zend_Db_Table_Row - it would be useful to have an exists() method

2007-02-11 Thread Will Prater
On Feb 11, 2007, at 9:59 AM, Bill Karwin wrote: Nick Thornley wrote: I'm just wondering what other people are doing to check if a row object has been populated, as my first thought is that an exists() method would be a useful, just as see there is in Zend_Db_Table_Rowset? for example, i

Re: [fw-general] Zend_Validate usage example and question

2007-02-03 Thread Will Prater
$field)] = $value; } } On Feb 3, 2007, at 4:18 PM, Will Prater wrote: List, I'm working with Zend_Validate and my first usage example did not work as expected. Perhaps this is not user expected behavior. The issue is that each Zend_Val

[fw-general] Zend_Validate usage example and question

2007-02-03 Thread Will Prater
List, I'm working with Zend_Validate and my first usage example did not work as expected. Perhaps this is not user expected behavior. The issue is that each Zend_Validate_Interface::isValid() resets the _messages property each time it's called. Leaving this example somewhat useless.

Re: [fw-general] Subclassing Zend_Db_Table_Row

2007-01-26 Thread Will Prater
On Jan 26, 2007, at 3:34 PM, Bill Karwin wrote: Taylor Barstow wrote: Hi, I'd like to add support for subclassing Zend_Db_Table_Row. Is this already in the works or is this a worthwhile thing for me to work on? It would probably be a pretty small patch. Hmm, I meant to send the follow

Re: [fw-general] Subclassing Zend_Db_Table_Row

2007-01-26 Thread Will Prater
I've implemented something like this for my company. I'd be happy to share with you if you'd like. Its fairly automatic as far as automatic extensions. If the properly named class exists for the Row or Rowset of the Model, the Table will use those classes when returning Row or Rowsets.

[fw-general] PHPUnit tests against Model (Zend_Db_Table)

2007-01-25 Thread Will Prater
List, I'm trying to write a simple test with PHPUnit, but am having a bit of difficulty. Here is my simple test: ... public function testProjectModel() { $project = new Project(); $this->assertTrue($project instanceof Project, 'Project object not re