jgulledge19 / CMPGenerator

⛔️ unmaintained ⛔️ Generate Scheme and Package classes for MODX Revolution XPDO
http://rtfm.modx.com/display/ADDON/CMPGenerator
7 stars 6 forks source link

Different prefix does not work #9

Closed jcamachott closed 8 years ago

jcamachott commented 8 years ago

I used a table called jtaholidays. Prefix I entered as jta and followed everything else as in the instructions. Created a test snippet as in https://rtfm.modx.com/extras/revo/cmpgenerator/cmpgenerator.5-minute-example and it did not work. In the error log, it was looking for modx_holidays.

So the only workaround was to rename the table - then it all worked perfectly.

jgulledge19 commented 8 years ago

Also when you add your package you have to state the prefix: https://rtfm.modx.com/xpdo/2.x/class-reference/xpdo/xpdo.addpackage

jcamachott commented 8 years ago

Thanks!