Hi there,
When tryint to execute $trades = Trades::findFirst(1); I get the error 'could not find driver'
Which is odd to me, when I try to execute $exchange = Exchanges::findFirst(["name = '" . $this->config->exchange . "' AND active"]); it works perfectly.
This is my php-m list:
[PHP Modules] calendar Core ctype curl date dom exif fileinfo filter ftp gd gearman gettext hash iconv intl json libxml mbstring msgpack mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql phalcon Phar posix readline Reflection session shmop SimpleXML sockets sodium SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl Zend OPcache zip zlib
[Zend Modules] Zend OPcache
When I uncomment this part of the code it all suddenly works: but I do need the part..
$this->log = new \Monolog\Logger('trades-model'); $this->log->pushHandler(new \PDOHandler(new \PDO( getenv('DB_CONNECTION').':host='.getenv('DB_HOST').';dbname='.getenv('DB_DATABASE'), getenv('DB_USERNAME'), getenv('DB_PASSWORD') )));