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

On MODx 3.0.0 install error #12

Open weboopl opened 2 years ago

weboopl commented 2 years ago

When trying to install CMPGenerator 1.1.3-pl on MODx 3.0.0 keep getting error: No foreign key definition for parentClass: MODX\Revolution\modMenu using relation alias: Action

ChrstnMgcn commented 1 year ago

@jgulledge19 Is there any plan on updating this extra to work for MODX3?

jgulledge19 commented 1 year ago

@ChrstnMgcn @weboopl I don't have plans to update for v3, unless someone can post an easy to follow document that tells you how to update an extra from v2 to v3.

It does look like xPDO v3 does have a command to generate some code: https://github.com/modxcms/xpdo/blob/3.x/src/xPDO/Console/Command/WriteSchema.php

ChrstnMgcn commented 1 year ago

@jgulledge19 Thanks for the reply. Bob Ray has a number of conversion tutorials on the MODX site. Here's a general cheatsheet with the new namespaces. https://modx.com/blog/modernizing-extras-conversion-cheat-sheet. I hope it helps!