I could do with a little help setting up mongoDB with Phalcon to output a simple find
The system I have is as follows:
- ubuntu 17.04
- php 7.022
- Phalcon v3.2.2
(New 'MongoDB' not old 'Mongo' type)
- MongoDB Server V3.4.7
- MongoDB extension v1.2.10 (stable)
- MongoDB Driver (I think v1.2 via composer)
- New install of Incubator via composer
I can use the php driver to get the result I need but I cannot do it the phalcon way.
I have tried for over a week to get anything to work, spent hours on google reading old and new posts about getting MongoDB to work and have completely destroyed numerous VM installations in the process.
To make things really simple and easy to understand what is needed, and what is happening a simple test script without models and controllers just the absolute basics needed for it to work would be a great help from anyone.
It appears I am not the only one with this issue and I would rather not use the old deprecated extension when it sounds like some have got the new Mongodb extension working ok.
use or include needed files/classes
connect to MongoDB at 127.0.0.1
connect to 'machinesdb'
connect to robotsCollection
$result = robotsCollection::find()