24 Feb 2012, 13:06
Generic-user-small

ALEJANDRO NIETO GONZALEZ (2 posts)

Hi,

after reading your book i went to test your experimental example that you use in your presentations. I have downloaded and i´m trying to make it work to learn more about this design using zend framework but i´m stalled.

I have downloaded the code from http://framework.zend.com/svn/framework/extras/incubator/library/ZendX/Db/

I´m very new with Zend. I just follow a nice tutorial created by Rob Allen. After it i just jumped to your example.

here is how the code call on the fetchThreeByRoot

$rootId = 5 ;
return $this->fetchTreeByRoot($rootId);

I have created SQL tables in my sql following schema defined in your presentation : http://www.slideshare.net/billkarwin/models-for-hierarchical-data I have recreated sone dummy data to make it works.

But i get the following error:

Fatal error: Call to a member function describeTable() on a non-object in library\Zend\Db\Table\Abstract.php on line 835

My connectivy with DB seems to be ok as i have setup application.ini properly because i oculd follow properly Rob tutorial.

would you mind to provide some hints to find out why the example might be failing?

kind regards.

21 Jun 2012, 17:24
Bk2_pragsmall

Bill Karwin (19 posts)

That error usually indicates that you don’t have an object instance, you probably have a boolean FALSE returned by some previous function. I don’t think you have a valid DB connection. Please contact the ZF mailing list for support.

  You must be logged in to comment