Commit 29ce606b authored by zYne's avatar zYne

added createQuery

parent b0129fb2
...@@ -270,6 +270,16 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable { ...@@ -270,6 +270,16 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
$this->repository = new Doctrine_Table_Repository($this); $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 * getRepository
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment