[Deprecated] DMZ 1.6.2 (DataMapper OverZealous Edition) |
[eluser]The Hamburgler[/eluser]
Got a weird bug here, hopefully somebody will be able to shed some light on it. I'm working on an XML extension plugin for the DMZ library. Calling to $obj->from_xml($xml_string) will convert an xml string into dm objects. Code: function from_xml($object, $xml_str, $fields = '', $callback = NULL) This seems to be working fine, i've used a similar technique to the included csv and json extensions. The method returns an array of new dm objects with each field set. In my controller code when I loop through this array and attempt to save each object I get a CI database error! Code: INSERT INTO `people` (`first_name`, `last_name`, `email`, `created`, `updated`) VALUES (Terry, Test, [email protected], '2009-12-15 11:26:12 +0000', '2009-12-15 11:26:12 +0000') Obviously the error here is that the constructed sql is not escaping the name and email string values... Why??? |
Welcome Guest, Not a member yet? Register Sign In |