Esempio n. 1
0
 /**
  * getImpl
  * returns the table class of the concrete implementation for given template
  * if the given template is not a template then this method just returns the
  * table class for the given record
  *
  * @param string $template
  */
 public function getImpl($template)
 {
     $conn = $this->_table->getConnection();
     if (class_exists($template) && in_array('Doctrine_Template', class_parents($template))) {
         $impl = $this->_table->getImpl($template);
         if ($impl === null) {
             throw new Doctrine_Relation_Parser_Exception("Couldn't find concrete implementation for template " . $template);
         }
     } else {
         $impl = $template;
     }
     return $conn->getTable($impl);
 }