c4tom / db2php

Automatically exported from code.google.com/p/db2php
GNU General Public License v3.0
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by pa...@econsulti.com.br on 15 Mar 2012 at 7:14

GoogleCodeExporter commented 9 years ago
Hi ^^
File -> New -> PHP -> PHP Entity Class helpers
Make sure your classloader picks them up.

Original comment by rc.poi...@gmail.com on 16 Mar 2012 at 10:18

GoogleCodeExporter commented 9 years ago

Original comment by rc.poi...@gmail.com on 16 Mar 2012 at 10:19

GoogleCodeExporter commented 9 years ago
Thanks!! =D

Original comment by pa...@econsulti.com.br on 17 Mar 2012 at 4:49

GoogleCodeExporter commented 9 years ago

Original comment by rc.poi...@gmail.com on 13 Aug 2012 at 12:28

GoogleCodeExporter commented 9 years ago
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 (...)"

Original comment by hectorg87@gmail.com on 21 Nov 2012 at 12:33