{
    "name": "save",
    "parent": "",
    "title": "",
    "permname": "",
    "modOrder": "001",
    "items": [
        {
            "name": "save",
            "purpose": "  Save data to database (simple wrapper around insert\/update) Chainable",
            "stype": "function",
            "|xns": "Roo.doc",
            "xtype": "Entry",
            "items": [
                {
                    "name": "save",
                    "is_static": false,
                    "is_constructor": false,
                    "memberof": "PDO_DataObject",
                    "returndesc": "",
                    "returntype": "",
                    "|xns": "Roo.doc",
                    "xtype": "Synopsis",
                    "items": [
                        {
                            "desc": "(optional) original snapshot of object, before it was changed.",
                            "is_optional": false,
                            "name": "$dataObject",
                            "type": "PDO_DAtaObject",
                            "|xns": "Roo.doc",
                            "xtype": "Param"
                        }
                    ]
                },
                {
                    "stype": "desc",
                    "|xns": "Roo.doc",
                    "xtype": "Section",
                    "items": [
                        {
                            "html": "  Usage\n ```\n PDO_DataObject::factory('mytable');\n      ->load(23)\n      ->set(['email' => \"test@testing.com\"]),\n      ->save()\n ```\n This will only update the changed column.  as load() calls snapshot on the loaded data.\n\n\n  Uses primary id to determine if data should be updated or inserted.\n",
                            "|xns": "Roo.doc",
                            "xtype": "Para"
                        }
                    ]
                },
                {
                    "stype": "parameter",
                    "|xns": "Roo.doc",
                    "xtype": "Section"
                },
                {
                    "stype": "return",
                    "|xns": "Roo.doc",
                    "xtype": "Section"
                }
            ]
        }
    ]
}