--
You received this message because you are subscribed to the Google Groups "Mandango Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mandango-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
mandango
object and assign it any connection.To create the mandango object you have to pass it the metadata factory object and a cache object. The metadata factory class is generated by Mandango, and for the cache you can use any implementation of the Mandango\Cache\CacheInterface
interface:
use Mandango\Cache\FilesystemCache; use Mandango\Connection; use Mandango\Mandango; use Model\Mapping\MetadataFactory; $metadataFactory = new MetadataFactory(); $cache = new FilesystemCache('/path/to/query/cache/dir'); $mandango = new Mandango($metadataFactory, $cache); $connection = new Connection('mongodb://localhost:27017', 'database_name'); $mandango->setConnection('my_connection', $connection);
The Mandango Documentation must be powerful as the Mandango is.