active-record
active-record copied to clipboard
Remove flag arguments from AR methods
-
[ ]
ActiveRecordInterface::getOldPrimaryKey(bool $asArray = false)split to-
getOldPrimaryKey(): mixedequals toActiveRecordInterface::getOldPrimaryKey(false) -
getOldPrimaryKeys(): arrayequals toActiveRecordInterface::getOldPrimaryKey(true)
-
-
[ ]
ActiveRecordInterface::getPrimaryKey(bool $asArray = false)split to-
getPrimaryKey(): mixedequals toActiveRecordInterface::getPrimaryKey(false) -
getPrimaryKeys(): arrayequals toActiveRecordInterface::getPrimaryKey(true)
-
-
[x]
BaseActiveRecord::isAttributeChanged(string $name, bool $identical = true)split to-
isAttributeChanged(string $name)equals toBaseActiveRecord::isAttributeChanged(string $name, true) -
isAttributeChangedEqual(string $name)equals toBaseActiveRecord::isAttributeChanged(string $name, false)
-
This removes extra check for these methods.