added createQuery
This commit is contained in:
parent
b0129fb2c3
commit
29ce606beb
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user