Hello all -
I would like to set a timestamp every time an object is updated in db.
What is the best approach to do this? I was thinking to use Event
model when BeforeUpdate is fired, by adding a test of the object type
each time I would like to set a timestamp...
Thanks for your advises,
I get the error: Element QOBJECT.TRANSFER_COMPOSITEID is undefined in
ARGUMENTS everytime I try to do a simple getProduct()
:::My Transfer.xml:::
package name=product
object name=product table=_tbl_product
id name=product_id type=numeric /
property name=name type=string
If the intent is to know when a record in a database was updated, regardless
of what updated it or how, allowing the database to handle its own logging
is a good answer. If you rely on the database to know when the database was
updated, then you know that the timestamp will be recorded no matter
I'd do that within the database. Have a LastUpdated field with a
default value of the current date/time.
My $0.02
On 2/3/09, aurel adeleusi...@gmail.com wrote:
Hello all -
I would like to set a timestamp every time an object is updated in db.
What is the best approach to do this? I was
because when transfer saves any of those objects, it has to re-save the
entire related set. Turn on query debugging and watch what is going on
there.
Often times I find myself using manyToOne relationships from the child
objects, or (more often lately) re-producing my desired effect with a
How many locale's do you have?
Mark
On Wed, Feb 4, 2009 at 4:23 AM, Chris Peterson overrid...@gmail.com wrote:
because when transfer saves any of those objects, it has to re-save the
entire related set. Turn on query debugging and watch what is going on
there.
Often times I find myself
I've got a onetomany relationship in my transfer xml doc that I'm
trying to add an object to. The add method, in my case
addenhanced_template_theme, fails with an error: The
addenhanced_template_theme package method in the C:\www\eteamz
\frameworks\transfer\com\TransferObject.cfc component
Can I grab the full error?
Not knowing where the error actual fires within transfer, leaves me a bit
stuck :(
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
Mark
On Wed, Feb 4, 2009 at 2:50 AM, Jorge Loyo jorgel...@gmail.com wrote:
I get the error:
There is no addXXX method for OneToMany. You need to use setParentXXX
on the child.
See: http://docs.transfer-orm.com/wiki/Generated_Methods.cfm#OneToMany_Element
On Tue, Feb 3, 2009 at 6:13 PM, john.ra...@gmail.com
john.ra...@gmail.com wrote:
I've got a onetomany relationship in my