[dev] RDO Mapper update patch
Chuck Hagenbuch
chuck at horde.org
Sat Jun 10 11:01:45 PDT 2006
Quoting Duck <duck at obala.net>:
> So I should first call RDO::setFields() then RDO_Mapper::update().
> But even this dosen't work.
> The id being set in mapper update is results always null. (line 214)
>
> In the RDO examples I don't find a working usage.
If you look at RDO/docs/examples/User.php, working with the users
table defined there, there is commented-out code for changing a User
object's name property:
//$userTwo->name = 'Bob';
//$result = $userTwo->save();
//var_dump($result);
If I create the table, run User.php, then uncomment that code and run
it again, the update works.
> Maybe an relationships example will be good to.
I had example code for relationships with Clotho, but that's dead now.
I still have the code; I'm going to be working on a bunch of
RDO-related stuff this weekend and perhaps I'll get to that as well.
-chuck
--
"we are plastered to the windshield of the bus that is time." - Chris
More information about the dev
mailing list