/** * Find a file by its primary key (backwards compatibility) * * @param mixed $varValue The value * @param array $arrOptions An optional options array * * @return \Model|null A model or null if there is no file */ public static function findByPk($varValue, array $arrOptions = array()) { if (static::$strPk == 'id') { return static::findById($varValue, $arrOptions); } return parent::findByPk($varValue, $arrOptions); }