PDA

View Full Version : class properties


amaltea
23-07-05, 01:23 AM
From dotproject framework documentation:

store( $updateNulls=false ) - Performs the database INSERT/UPDATE, depending on the state of the in-object-primary-key, transfering all the object's properties to their respective database columns. If the primary key is zero or null, store() performs an INSERT, otherwise it performs an UPDATE. This method returns NULL on success and an error string on an error.

The question: is there any way to have a property that the inherited methods from CDpObject CLASS won't take as a database field ?

amaltea
23-07-05, 03:01 AM
Maybe overloading the bind method to call bindHashToObject with bindAll = false, and using some prefix with properties that want to be treated "as fields" ... ?

but, in this case need to overload some other method ?

Thanks!