protected function addFKMethods(&$script)
    {
        foreach ($this->getTable()->getForeignKeys() as $fk) {
            $this->declareClassFromBuilder($this->getNewStubObjectBuilder($fk->getForeignTable()), 'Child');
            $this->declareClassFromBuilder($this->getNewStubQueryBuilder($fk->getForeignTable()));
            $this->addFKMutator($script, $fk);
            $this->addFKAccessor($script, $fk);
        } // foreach fk
    }
protected function addFKMethods(&$script)
    {
        foreach ($this->getTable()->getForeignKeys() as $fk) {
            $this->declareClassFromBuilder($this->getNewStubObjectBuilder($fk->getForeignTable()), 'Child');
            $this->declareClassFromBuilder($this->getNewStubQueryBuilder($fk->getForeignTable()));
            $this->addFKMutator($script, $fk);
            $this->addFKAccessor($script, $fk);
        } // foreach fk
    }
protected function addFKMethods ( & $ script ) { foreach ( $ this -> getTable ( ) -> getForeignKeys ( ) as $ fk ) { $ this -> declareClassFromBuilder ( $ this -> getNewStubObjectBuilder ( $ fk -> getForeignTable ( ) ) , 'Child' ) ; $ this -> declareClassFromBuilder ( $ this -> getNewStubQueryBuilder ( $ fk -> getForeignTable ( ) ) ) ; $ this -> addFKMutator ( $ script , $ fk ) ; $ this -> addFKAccessor ( $ script , $ fk ) ; } // foreach fk }
Adds the methods that get & set objects related by foreign key to the current object.
@param string &$script The script will be modified in this method.
Adds the methods that get & set objects related by foreign key to the current object .