Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for dynamic location of Collections and Models plus the c…
…lass names Use: (assuming MongoDB collection is "people") // For collecitons Modomo\Config::$collectionNS; // \Collection\People.php Modomo\Config::$collectionNS = 'App\\Collection'; // \App\Collection\People.php Modomo\Config::$collectionClass = '{{mongo.coll}}Collection'; // \App\Collection\PeopleCollection.php // For documents Modomo\Config::$documentNS; // \Document\People.php Modomo\Config::$documentNS = 'App\\Document'; // \App\Document\People.php Modomo\Config::$documentClass = '{{mongo.coll}}Document'; // \App\Document\PeopleDocument.php
- Loading branch information