/** * Compare in the following style in the where condition: * $column = $compareValue. * When the type argument isset to 'column', the second argument will interpreted as column. * Otherwise it is like a string or value comparison. * * @param string $column The column name which should compare. * @param string $compareValue The value for the comparison. * @param string|null $type (Optional) Set to 'column' for a comparison with two columns. * * @return $this The same instance to concatenate methods. */ public function equal($column, $compareValue, $type = null) { $preparedObjectsArray = $this->_getPrepareObjectsArray($column, $compareValue, $type); $this->condition->equal($preparedObjectsArray['column'], $preparedObjectsArray['compareValue']); return $this; }