[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ObjectDoc and a question about the change
Jason (or anyone),
Are you keeping the latest version of your object docs here?
http://vodka.linuxkb.org/~chardros/objectdoc.html
Or is there something more recent? It's what I've been working with.
Also, about the commit() change. You mentioned...
-----------
****************************** IMPORTANT **************************
One of the biggest, hardest to detects changes in this release of
functions.php3 - even though
minor it can screw you - is this fact:
$object->commit();
That line used to update all the values for $object and store them in
the DB. No longer the
case. It will still store all new values to the DB, but current values
will remain the same.
This has the biggest impact when creating new objects, because you most
likely rely on
$object->objectid and other properties to be updated upon a commit().
There is an easy
alternative. commit() now RETURNS the updated object. So ALL OF YOUR
exisiting code will
still work if you change the above example to:
$object = $object->commit();
$object will then take on all the new properties. Make sure NOT TO MISS
THIS. I can't stress
enough.
All the various pages I have written have already been updated.
--------------
I'm not quite sure how this is working. You're saying that I can just
change $newuser->commit() to $newuser = $newuser->commit() and that will
fix it? How does simply assigning the new object to itself change
anything? Do I need to do anything at all with $newuser after that
statement? How can I now check for the case when there's a duplicate
handle or E-mail address? (It was check for a return of -1 before.)
Last but not least, why does
http://dev.linuxkb.org:81/render.php3?type=4&op=2.10&oid=10&act=Create&si=History()
now render this:?
-------
Error encountered (render halted): Number of objects given does not
equal number of ext tables
given, or does not equal number of actions given:
Num_Of_Objects: 25
Num_Of_Actions: 25
Table_Type_Map_Entries: 19
--------
That's the exact same URL I used to use. Now it's screwed up. :)
Thanks,
Micah