nciri / zend-db-model-generator

Automatically exported from code.google.com/p/zend-db-model-generator
0 stars 0 forks source link

Correct way to get all records #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What is the correct way to get all the records?

I'm trying:

$ano = new Application_Model_Ano();
$anos = $ano->fetchAll();

And I always get:
Message: Unrecognized method 'fetchAll()'

Please advise me the correct way of doing it!
Thanks

Original issue reported on code.google.com by falsov...@gmail.com on 13 Mar 2012 at 3:11

GoogleCodeExporter commented 8 years ago
Try $ano->getMapper()->fetchAll();.

The autoloader method is incomplete - some methods must be called from the 
mapper itself. I'll fix it asap.

Original comment by pedrospdc on 21 Mar 2012 at 3:04

GoogleCodeExporter commented 8 years ago

Original comment by pedrospdc on 21 Mar 2012 at 3:05