1
0
mirror of synced 2024-12-13 14:56:01 +03:00

added createQuery

This commit is contained in:
zYne 2006-11-06 18:25:39 +00:00
parent b0129fb2c3
commit 29ce606beb

View File

@ -270,6 +270,16 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
$this->repository = new Doctrine_Table_Repository($this);
}
/**
* createQuery
* creates a new Doctrine_Query object and adds the component name
* of this table as the query 'from' part
*
* @return Doctrine_Query
*/
public function createQuery() {
return Doctrine_Query::create()->from($this->getComponentName());
}
/**
* getRepository
*