function getRelationsManyToManyFor($table_name)
 {
     $table = $this->_db_info->getTable($table_name);
     $relation_tables = $this->_findManyToManyRelationTableFor($table);
     $relations = array();
     foreach ($relation_tables as $relation_table) {
         $relations = array_merge($relations, $this->_formRelationManyToMany($table, $relation_table));
     }
     return $relations;
 }
Example #2
0
 function __construct($connection, $name, $isExisting = false)
 {
     $this->connection = $connection;
     $this->isExisting = $isExisting;
     parent::__construct($name);
 }