xpdo
xpdo copied to clipboard
xPDO Object Relational Bridge for PHP
This avoids the deprecation warning when dynamic properties are assigned to the class in 8.2+ and resolves #256
## Bug report ### Summary Update to PHP 8.2 and watch your Modx log file. You’ll notice PHP deprecation warnings for dynamic properties in the `xPDO` class. This happens in...
Option ignored when value set in getInstance() method due to incorrect getOption() key being used in xPDO class.
If the size returns null or 0 the script fails with a fatal error at fread.
I get this PHP warning when i try to save an object that uses a compound primary key: (ERROR @ .../core/xpdo/om/xpdoobject.class.php : 1478) PHP warning: Illegal offset type The warning...
Previously seen in #159. This is occurring in xPDO X3.0.1's XPDO as well. No aggregates get added to the model files across the entire schema, while being correctly added to...
The issue was initially written in Modx Revolution https://github.com/modxcms/revolution/issues/13657#issuecomment-338891612 ### Summary Using floats in a 'andCondition' call would transform them as integer ### Step to reproduce create an XPDO query...
I'm trying access nested related objects using getCollectionGraph(). My schema: ``` ``` Code: ``` $collection = $this->modx->getCollectionGraph('TestClass','{"actions":{"activities":{}}}',array('id' => 5)); foreach ($collection as $row) { foreach ($row->actions as $action) { //do...
In the [MODX deprecations issue](https://github.com/modxcms/revolution/issues/13199) there's the question of toJSON and fromJSON utilities, and wether that's still necessary or should be removed. I'd say deprecating them would be a pretty...
The writeSchema method in xPDO 3 does not create a valid scheme for xPDO 3. opengeek stated on Slack: "that’s all still 2.x schema-ish".