xpdo
xpdo copied to clipboard
xPDO Object Relational Bridge for PHP
The following code does not work anymore with MySQL 8: `$c->groupby($this->classKey . '.key', 'ASC');` According to @digitalpenguin it has to be reduced to: `$c->groupby($this->classKey . '.key');`
``` if (!$this->modx->addPackage('Database', $this->config['modelPath'] , $this->prefix)) ``` Creates the tables in the schema, but with the modx_ prefix. switching it to ``` if (!$this->modx->setPackage('Database', $this->config['modelPath'] , $this->prefix)) { ``` Performs...
In https://github.com/modxcms/xpdo/blob/3.x/src/xPDO/xPDO.php#L474-L476, changing `$added = true;` to `$added = $this->setPackageMeta` will allow calls to `addPackage` to get the proper true/false dependant on the actual success.
### What does it do? Wrap the output of the error log message. ### Why is it needed? To be able to customize the HTML block of error messages if...
It's missing a few things, but functionally it works. Things that can be improved upon: - It could probably do with some more error handling. - While I store an...
Would it be useful (and possible) to allow aliases on multiple columns ? The first use case coming to my mind being ``` xml ```
I ran into an issue with another composer package I'm using and noticed that xpdo requires older versions of the symfony/console package: ```"symfony/console": "~2.8|~3.4",``` Is it possible to update this...
First pass at implementing support for a PSR-3 logger into xPDO. The basic idea is you pass a `LoggerInterface` into the container, which will then be set to `protected xPDO::$logger`...
In src/xPDO/Om/mysql/xPDOManager.php:117 must check is exist table, but this is not working in MySQL8. When try $manger->createObjectContainer() result is `Error Code: 1146. Table 'eparket.modx_epshop_payment' doesn't exist` because table not created...
## Feature request ### Summary xPDOGenerator.writeSchema currently takes four values: file name, package name, base class, and prefix. Adding two more would extend the capabilities: restrict to prefix (boolean), and...