interface Persistent
This interface defines methods related to saving an object
Methods
ObjectKey |
getPrimaryKey()
getter for the object primaryKey. |
|
void |
setPrimaryKey(mixed $primaryKey)
Sets the PrimaryKey for the object. |
|
boolean |
isModified()
Returns whether the object has been modified, since it was last retrieved from storage. |
|
boolean |
isColumnModified(string $col)
Has specified column been modified? |
|
boolean |
isNew()
Returns whether the object has ever been saved. |
|
setNew(boolean $b)
Setter for the isNew attribute. |
||
void |
resetModified()
Resets (to false) the "modified" state for this object. |
|
boolean |
isDeleted()
Whether this object has been deleted. |
|
void |
setDeleted(boolean $b)
Specify whether this object has been deleted. |
|
void |
delete(PropelPDO $con = null)
Deletes the object. |
|
void |
save(PropelPDO $con = null)
Saves the object. |
Details
at line 28
public ObjectKey
getPrimaryKey()
getter for the object primaryKey.
at line 38
public void
setPrimaryKey(mixed $primaryKey)
Sets the PrimaryKey for the object.
at line 46
public boolean
isModified()
Returns whether the object has been modified, since it was last retrieved from storage.
at line 55
public boolean
isColumnModified(string $col)
Has specified column been modified?
at line 64
public boolean
isNew()
Returns whether the object has ever been saved.
This will be false, if the object was retrieved from storage or was created and then saved.
at line 72
public
setNew(boolean $b)
Setter for the isNew attribute.
This method will be called by Propel-generated children and Peers.
at line 79
public void
resetModified()
Resets (to false) the "modified" state for this object.
at line 86
public boolean
isDeleted()
Whether this object has been deleted.
at line 95
public void
setDeleted(boolean $b)
Specify whether this object has been deleted.
at line 105
public void
delete(PropelPDO $con = null)
Deletes the object.
at line 115
public void
save(PropelPDO $con = null)
Saves the object.