Export to GitHub

db2php - issue #14

Call to undefined method ModelCategorias::notifyChanged() and PHP Fatal error: Class 'Db2PhpEntityBase' not found


Posted on Mar 15, 2012 by Helpful Bear

Hi,

I generated models of the mysql database, but when I use the generated model gives the following errors:

Call to undefined method ModelCategorias::notifyChanged() PHP Fatal error: Class 'Db2PhpEntityBase' not found

Help me, thanks =)

Paulo Roberto Silva paulo@econsulti.com.br

Comment #1

Posted on Mar 16, 2012 by Grumpy Horse

Hi ^^ File -> New -> PHP -> PHP Entity Class helpers Make sure your classloader picks them up.

Comment #2

Posted on Mar 16, 2012 by Grumpy Horse

(No comment was entered for this change.)

Comment #3

Posted on Mar 17, 2012 by Helpful Bear

Thanks!! =D

Comment #4

Posted on Aug 13, 2012 by Grumpy Horse

(No comment was entered for this change.)

Comment #5

Posted on Nov 21, 2012 by Happy Elephant

Can you please elaborate more on "Make sure your classloader picks them up."? How do I make PHP to automatically load all the generated Entity Class helpers? I managed to generate them easily, but they don't are not seen from my generated entity, which is in the same folder as the helpers, and therefore giving me the "Fatal error: Class 'Db2PhpEntityBase' not found in (...)"

Status: Done

Labels:
Type-Other Priority-Low Component-Docs