Propel API
Class

PropelIndexComparator

class PropelIndexComparator

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

Methods

static boolean computeDiff(Index $fromIndex, Index $toIndex, boolean $caseInsensitive = false)

Compute the difference between two index objects

Details

at line 32
static public boolean computeDiff(Index $fromIndex, Index $toIndex, boolean $caseInsensitive = false)

Compute the difference between two index objects

Parameters

Index $fromIndex
Index $toIndex
boolean $caseInsensitive Whether the comparison is case insensitive. False by default.

Return Value

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