Hi.
I have db table with fields, which names consists only number.
e.g.:
CREATE TABLE `modx_crm_azs` (
-- ....
`80` tinyint(4) NOT NULL DEFAULT '0',
`92` tinyint(4) NOT NULL DEFAULT '0',
`95` tinyint(4) NOT NULL DEFAULT '0',
`98` tinyint(4) NOT NULL DEFAULT '0',
`dt` tinyint(4) NOT NULL DEFAULT '0',
`dtge` tinyint(4) NOT NULL DEFAULT '0',
`sot` tinyint(4) NOT NULL DEFAULT '0',
`wc` tinyint(4) NOT NULL DEFAULT '0',
`active` tinyint(4) NOT NULL DEFAULT '1',
`order` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`system_id`,`id`),
KEY `isupdate` (`isupdate`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
I generated XML schema and model class for this table.
And, when I try to use it, I catch error.
Sorry, I can't post it here, because this situation happened a month ago,
and to repair this bug I rename my fields (only add some alphabetic characters).
My opinion about this bug is:
xPDO use
array_merge function, when generate internal structures for my table.
And if array, which passed to
array_merge has numeric keys, array_merge don`t promise to save it.
E.g. from php.net:
<?php
$array1 = array();
$array2 = array(1 => "data");
$result = array_merge($array1, $array2);
?>
Result:
Is there is really bug, or I am wrong ?
Excuse me for my terrible and lame English.
I want to believe that you understand me
[ed. note: MaXL last edited this post 13 years, 11 months ago.]