Propel API
Class

PropelForeignKeyComparator

class PropelForeignKeyComparator

Service class for comparing ForeignKey objects Heavily inspired by Doctrine2's Migrations (see http://github.com/doctrine/dbal/tree/master/lib/Doctrine/DBAL/Schema/)

Methods

static boolean computeDiff(ForeignKey $fromFk, ForeignKey $toFk, boolean $caseInsensitive = false)

Compute the difference between two Foreign key objects

Details

at line 33
static public boolean computeDiff(ForeignKey $fromFk, ForeignKey $toFk, boolean $caseInsensitive = false)

Compute the difference between two Foreign key objects

Parameters

ForeignKey $fromFk
ForeignKey $toFk
boolean $caseInsensitive Whether the comparison is case insensitive. False by default.

Return Value

boolean false if the two fks are similar, true if they have differences