protected function addForeignConstraints(&$properties, array $constraints)
    {
        foreach ($constraints as $constraint) {
            $this->addForeignConstraint($properties, $constraint)
                ->addReferencesConstraint($properties, $constraint)
                ->addOnConstraint($properties, $constraint)
                ->addOnDeleteConstraint($properties, $constraint)
                ->addOnUpdateConstraint($properties, $constraint)
                ->addFieldPropertyClousure($properties);
        }

        return $this;
    }
protected function addForeignConstraints(&$properties, array $constraints)
    {
        foreach ($constraints as $constraint) {
            $this->addForeignConstraint($properties, $constraint)
                ->addReferencesConstraint($properties, $constraint)
                ->addOnConstraint($properties, $constraint)
                ->addOnDeleteConstraint($properties, $constraint)
                ->addOnUpdateConstraint($properties, $constraint)
                ->addFieldPropertyClousure($properties);
        }

        return $this;
    }
protected function addForeignConstraints ( & $ properties , array $ constraints ) { foreach ( $ constraints as $ constraint ) { $ this -> addForeignConstraint ( $ properties , $ constraint ) -> addReferencesConstraint ( $ properties , $ constraint ) -> addOnConstraint ( $ properties , $ constraint ) -> addOnDeleteConstraint ( $ properties , $ constraint ) -> addOnUpdateConstraint ( $ properties , $ constraint ) -> addFieldPropertyClousure ( $ properties ) ; } return $ this ; }
Adds foreign key constraint to a given properties.

@param string $properties
@param array $constraints

@return $this
Adds foreign key constraint to a given properties .