Issue Bug Closed

#77726Error when saving an inline CSV relation

Tymoteusz Motylewski 08/31/16, 18:13 updated 09/01/16, 10:36

Description

If I try to save a new record in the inline relation
I’m getting an error:

Doctrine\DBAL\Exception\DriverException: An exception occurred while executing ‘UPDATE `sys_category` SET `related_category` = ? WHERE `uid` = ?’ with params [“”, 304]: Incorrect integer value: ‘’ for column ‘related_category’ at row 1 in vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 115

Steps to reproduce:
- install attached test extension
- then edit sys_category
- add an inline child – in the related category field
- try to save it

TCA for the related category field looks like:

'related_category' => array(
    'label' => 'Related category (1. add relation, 2. "Parent" category tree is missing)',
    'config' => array(
      'type' => 'inline',
      'foreign_table' => 'sys_category',
    ),

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.