Library/Bullhorn/FastRest/Generator/ModelBuilder.php
private function buildRelationshipsBuffer() {
        $buffer = '';
        foreach($this->getRelationships() as $relationship) {
            $buffer .= '		$this->' . $relationship->getRelationshipType() . '(
			\'' . $this->getField($relationship->getLocalColumn())->getShortName() . '\',
			\'' . $relationship->getRemoteModel() . '\',
			\'' . $relationship->getRemoteShortColumn() . '\',
			array(
				\'alias\'      => \'' . $relationship->getAlias() . '\',
				\'foreignKey\' => array(
					\'message\' => \'The ' . $this->getTableName() . ' cannot be deleted because other ' . $relationship->getRemoteTable() . '(s) are attached\',
					\'action\'  => Relation::' . $relationship->getAction() . '
				),
				\'reusable\' => true
			)
		);' . "\n";
        }
        return $buffer;
    }
private function buildRelationshipsBuffer() {
        $buffer = '';
        foreach($this->getRelationships() as $relationship) {
            $buffer .= '		$this->' . $relationship->getRelationshipType() . '(
			\'' . $this->getField($relationship->getLocalColumn())->getShortName() . '\',
			\'' . $relationship->getRemoteModel() . '\',
			\'' . $relationship->getRemoteShortColumn() . '\',
			array(
				\'alias\'      => \'' . $relationship->getAlias() . '\',
				\'foreignKey\' => array(
					\'message\' => \'The ' . $this->getTableName() . ' cannot be deleted because other ' . $relationship->getRemoteTable() . '(s) are attached\',
					\'action\'  => Relation::' . $relationship->getAction() . '
				),
				\'reusable\' => true
			)
		);' . "\n";
        }
        return $buffer;
    }
private function buildRelationshipsBuffer ( ) { $ buffer = '' ; foreach ( $ this -> getRelationships ( ) as $ relationship ) { $ buffer .= '		$this->' . $ relationship -> getRelationshipType ( ) . '(
			\'' . $ this -> getField ( $ relationship -> getLocalColumn ( ) ) -> getShortName ( ) . '\',
			\'' . $ relationship -> getRemoteModel ( ) . '\',
			\'' . $ relationship -> getRemoteShortColumn ( ) . '\',
			array(
				\'alias\'      => \'' . $ relationship -> getAlias ( ) . '\',
				\'foreignKey\' => array(
					\'message\' => \'The ' . $ this -> getTableName ( ) . ' cannot be deleted because other ' . $ relationship -> getRemoteTable ( ) . '(s) are attached\',
					\'action\'  => Relation::' . $ relationship -> getAction ( ) . '
				),
				\'reusable\' => true
			)
		);' . "\n" ; } return $ buffer ; }
Builds the relationship buffer
@return string
Builds the relationship buffer