src/Service/DoctrineTableGateway.php
private function getDbTypesForProperties(TableRow $tableRow)
    {
        $dbTypes = [];

        foreach ($tableRow->properties() as $propName => $prop) {
            $dbTypes[$tableRow::toDbColumnName($propName)] = $tableRow::getDbTypeForProperty($propName);
        }

        return $dbTypes;
    }
private function getDbTypesForProperties(TableRow $tableRow)
    {
        $dbTypes = [];

        foreach ($tableRow->properties() as $propName => $prop) {
            $dbTypes[$tableRow::toDbColumnName($propName)] = $tableRow::getDbTypeForProperty($propName);
        }

        return $dbTypes;
    }
private function getDbTypesForProperties ( TableRow $ tableRow ) { $ dbTypes = [ ] ; foreach ( $ tableRow -> properties ( ) as $ propName => $ prop ) { $ dbTypes [ $ tableRow :: toDbColumnName ( $ propName ) ] = $ tableRow :: getDbTypeForProperty ( $ propName ) ; } return $ dbTypes ; }
Db types need to be an array in the same order as the properties
@param TableRow $tableRow
@return array
Db types need to be an array in the same order as the properties