xpdo
xpdo copied to clipboard
xPDO Object Relational Bridge for PHP
As `$columns` can be either a CSV or array, this should be either `@param mixed $columns`, `@param array|string $columns` or `@param string[]|string $columns`. https://github.com/modxcms/xpdo/blob/c4f7bc6aa6a3f83b12615d07c171d3b97f40328d/src/xPDO/Om/xPDOQuery.php#L220
Currently, `PDO::ATTR_ERRMODE` attribute can be set as a driver option for new `xPDO\xPDOConnection` instances. Setting it to `PDO::ERRMODE_EXCEPTION` changes the error reporting behavior of PDO to throw Exceptions instead of...
### What does it do? Improve log message "Encountered empty IN condition with key id". ### How to test 1. Try to execute the code. modalConsole can be used to...
Given a model class like.. ``` namespace Namespace\Model; class SomeObject extends xPDOObject { protected const SOME_CONSTANT = 'some relevant value'; ``` ... the created platform classes get: ``` namespace Namespace\Model\mysql;...
Force the chosen charset instead of relying on unreliable server behavior.
As described by @davidpede in #152, when an object is loaded with lazy-loaded fields, additional queries are fired automatically to load the lazy fields if the db_cache is enabled. This...
xpdo is currently missing support for spatial datatypes
Hey There, I've been using xPDO as our ORM for 4 years now, so first of all thanks :) We are having a problem with newer version of mysql (v10.2...
## Feature request ### Summary Sometimes I get this error in the logs: > (ERROR @ /somepath/www/core/xpdo/om/xpdoquery.class.php : 764) > Encountered empty IN condition with key id Looking at this...
xPDO [Docs](https://docs.modx.com/xpdo/2.x/class-reference/xpdo/xpdo.getiterator) state that you can use cacheFlag but xPDOIterator just calls xPDOObject::_loadInstance() so there is no caching with iterators. Would be great to add cache support for iterators.