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 37
public void
setPrimaryKey(mixed $primaryKey)
Sets the PrimaryKey for the object.
at line 45
public boolean
isModified()
Returns whether the object has been modified, since it was last retrieved from storage.
at line 53
public boolean
isColumnModified(string $col)
Has specified column been modified?
at line 62
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 70
public
setNew(boolean $b)
Setter for the isNew attribute.
This method will be called
by Propel-generated children and Peers.
at line 77
public void
resetModified()
Resets (to false) the "modified" state for this object.
at line 83
public boolean
isDeleted()
Whether this object has been deleted.
at line 90
public void
setDeleted(boolean $b)
Specify whether this object has been deleted.
at line 98
public void
delete(PropelPDO $con = null)
Deletes the object.
at line 106
public void
save(PropelPDO $con = null)
Saves the object.