Пример #1
0
 protected function _syncBindingModel(Garp_Spawn_Relation $relation)
 {
     $progress = $this->_getFeedbackInstance();
     $bindingModel = $relation->getBindingModel();
     $progress->display($bindingModel->id . " table comparison");
     $synchronizer = new Garp_Spawn_MySql_Table_Synchronizer($bindingModel, $progress);
     $synchronizer->sync();
 }
Пример #2
0
 /**
  * Adds the relation to the relation set, if it's singular.
  * @param   Array                       $relationSet    The set to add the relation to
  * @param   String                      $relName        The relation name
  * @param   Garp_Spawn_Relation $relation       The relation instance, plural or singular
  * @return  Array                                       The relation set with the added singular relation
  */
 protected function _addSingularRelation(array $relationSet, $relName, Garp_Spawn_Relation $relation)
 {
     if ($relation->isSingular()) {
         $relationSet[$relName] = $relation;
     }
     return $relationSet;
 }