Dorm
__construct
([string $config_path = null])
-
string
$config_path: Path to XML config file.
void
delete
( $domain_object)
Get an object from the database, load it and return it.
object Loaded
get
(string $class, mixed $id)
Load an object collection from the database.
array
getCollection
(string $class, string $where, $where_values, $order, string $limit)
-
string
$class
-
string
$where
-
string
$limit: 0,1
-
$where_values
-
$order
Returns the connection of the first map
PDO
getConnection
()
Wraps a domain object with Dorm_Object.
Dorm_Object
getDormObject
(
string|object $class, [
array $id =
null])
-
string|object
$class
-
array
$id
array
getId
(object $domain_object)
Get Dorm_Map for a specific class.
Loads an object from the database.
We need to do this in order to always have consistent IDs
void
normalizeId
(string $class, mixed $id)
Insert/update domain object to the database.
void
save
(object $domain_object)
void
setCacheType
( $cache_type, integer $cache)
-
integer
$cache
-
$cache_type
void
setDataMapperClass
( $object_class, $data_mapper_class)
-
$object_class
-
$data_mapper_class
Allows to call $dorm->getClassName(id) instead of $dorm->get('ClassName', id);
void
__call
( $method_name, $arguments)