cassell/Parm

View on GitHub
src/Generator/templates/alias_all_tables_to_global_namespace.mustache

Summary

Maintainability
Test Coverage
<?php

/*
 * Use this file to add all of your namespace generated database classes to the global namespace.
 * This can be useful while migrating to using namespaces.
 * This can be bit slow because PHP will open and parse every file listed below.
 * You might also consider including the vendor/parm/parm/use_global_namespace.php file
 *
 */

 
{{#tables}}
class_alias('{{escapedNamespace}}{{className}}DaoObject', '{{className}}DaoObject');
class_alias('{{escapedNamespace}}{{className}}DaoFactory', '{{className}}DaoFactory');
{{/tables}}