-
- 4,149 Posts
<field key="charset" dbtype="varchar"0 phptype="string" null="true" />
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
-
- 390 Posts
Hmm. Freaky deaky. I’ve just re-run it several times and it always generates a 0 for that one table at that location.
NYAHA!
Mr McCormick - once again I bow to your superior eye for detail. It transpires that three of the tables I had copied from elsewhere had a varchar(0) typo in the create statement which I didn’t spot. For some reason MySQL allowed it through.
Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
Will you provide an easier way/method to generate the package with php only in the future "a la Doctrine" ?
It doesn’t bother me but some people who are not accustomated with this method.
If a user does not need to set any relationship (at the begginning) it can bothersome to him to understand that he have to create an xml files and then parse it and all the "things" behind xPDO.
I think that levelling down (?) the access to the API with a simpler method that can be extended for those who need the full capabilities can be good to convince people to jump into the xpdo wagon.
But i understand that it is not a priority since they have ultimately access to native PDO without the need to generate the map classes.
-
- 54 Posts
It doesn't like hyphens in database names, which is weird because MODX works fine with them.
Renaming it to avon_mc and it works fine, go figure...!
-
- 24,544 Posts
Quote from: lossendae at Jan 19, 2011, 07:00 PM
If a user does not need to set any relationship (at the begginning) it can bothersome to him to understand that he have to create an xml files and then parse it and all the "things" behind xPDO.
Maybe I'm misunderstanding you, but there's a snippet here that will create the schema and class files for you:
http://bobsguides.com/custom-db-tables.html
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
I can vouch for that snippet, it works great!