Quote from: dunnock at May 23, 2013, 10:48 AMFor the package (if leaving the potential class collision out of the occasion), as the second param is field values for newObject and rest of the object fetching methods usually have criteria. Alternative would be to have third parameter to have the package.
Yes, I agree that the 2nd parameter should remain the "fields" one. So, the method we are discussing would have the following signature:
public function modX::newObject(className:string, fields:array, packageName:string)
Quote from: dunnock at May 23, 2013, 10:48 AMAdded: I guess this topic could be moved to xPDO smiley
Can I move it or should one of the moderators do it?