Thanks for the input. Question: are you considering the XML schema your model? Could you please give an exact example? I'm sorry I'm so dense, but my mind can imagine that command pointing to several locations and working in several ways...
Well first you'll need to parse the XML file and generate the object maps and class files:
http://svn.modxcms.com/docs/display/xPDO20/Generating+the+Model+CodeDoes the following example load an XML file in
/core/model/schema/? e.g.
/core/model/schema/mypackagename.mysql.schema.xml? Or is it targeting the PHP files that reference that XML file?
$modx->addPackage('mypackagename','/path/to/my/model/');
It's targeting the PHP classes and maps.
If it's referencing the XML, is it assumed that the format of the file name is "mypackagename.mysql.schema.xml"? If so, how do you change the database component (e.g. to Oracle or Mongo DB)?
It can technically be whatever you want - we've just standardized that so people dont get confused.
xPDO at this current time doesnt support other DB platforms; it will in the future. Once we get that up and running, we'll provide more info on how to do that.
// ie, for a package "test" in your "core/components/myapp/model/test/'
$modx->addPackage('test',$modx->getOption('core_path').'/components/myapp/model/');
Again, does that command load up a PHP or an XML file?
It parses the PHP maps and classes.