|
static | getManyToOne ($instance, $member, $useCache=NULL) |
| Loads member associated with $instance by a ManyToOne type relationship. More...
|
|
static | getOneToMany ($instance, $member, $useCache=NULL, $annot=null) |
| Assign / load the child records in the $member member of $instance. More...
|
|
static | affectsOneToManyFromArray ($instance, $member, $array=null, $mappedBy=null) |
|
static | getManyToMany ($instance, $member, $array=null, $useCache=NULL) |
| Assigns / loads the child records in the $member member of $instance. More...
|
|
static | affectsManyToManys ($instance, $array=NULL, $useCache=NULL) |
|
static | getAll ($className, $condition='', $loadManyToOne=true, $loadOneToMany=false, $useCache=NULL) |
| Returns an array of $className objects from the database. More...
|
|
static | paginate ($className, $page=1, $rowsPerPage=20, $condition=null) |
|
static | getRownum ($className, $ids) |
|
static | count ($className, $condition='') |
| Returns the number of objects of $className from the database respecting the condition possibly passed as parameter. More...
|
|
static | getOne ($className, $keyValues, $loadManyToOne=true, $loadOneToMany=false, $useCache=NULL) |
| Returns an instance of $className from the database, from $keyvalues values of the primary key. More...
|
|
static | connect ($dbType, $dbName, $serverName="127.0.0.1", $port="3306", $user="root", $password="", $options=[], $cache=false) |
| Establishes the connection to the database using the past parameters. More...
|
|
static | isConnected () |
| Returns true if the connection to the database is estabished. More...
|
|
static | remove ($instance) |
| Deletes the object $instance from the database. More...
|
|
static | delete ($modelName, $ids) |
|
static | insert ($instance, $insertMany=false) |
| Inserts a new instance $ instance into the database. More...
|
|
static | insertOrUpdateAllManyToMany ($instance) |
| Met à jour les membres de $instance annotés par un ManyToMany. More...
|
|
static | insertOrUpdateManyToMany ($instance, $member) |
| Updates the $member member of $instance annotated by a ManyToMany. More...
|
|
static | update ($instance, $updateMany=false) |
| Updates an existing $instance in the database. More...
|
|
static | save ($instance, $updateMany=false) |
|
|
static | _getOneToManyFromArray (&$ret, $array, $fkv, $mappedBy) |
|
static | setToMember ($member, $instance, $value, $class, $part) |
|
static | getManyToManyFromArray (&$ret, $instance, $array, $class, $parser) |
|
static | _affectsObjectsFromArray ($queries, $objects, $affectsCallback, $useCache=NULL) |
|
static | affectsManyToOneFromArray ($object, $member, $manyToOneObjects, $fkField) |
|
static | loadObjectFromRow ($row, $className, $invertedJoinColumns, $oneToManyFields, $members, &$oneToManyQueries, &$manyToOneQueries) |
|
static | prepareOneToMany (&$ret, $instance, $member, $annot=null) |
| Prepares members associated with $instance with a oneToMany type relationship. More...
|
|
static | prepareManyToOne (&$ret, $value, $fkField, $annotationArray) |
| Prepares members associated with $instance with a manyToOne type relationship. More...
|
|
static | parseKey (&$keyValues, $className) |
|
Definition at line 18 of file DAO.php.