public static function findAllByPk($pk, $condition = null, $params = [])
    {
        $class = get_called_class();
        $condition = ModelCondition::getFrom($condition, $class);
        $condition->compareColumn($class::getDb()->getTablePk($class::getTableName()), $pk);
        return self::findAll($condition, $params);
    }
public static function findAllByPk($pk, $condition = null, $params = [])
    {
        $class = get_called_class();
        $condition = ModelCondition::getFrom($condition, $class);
        $condition->compareColumn($class::getDb()->getTablePk($class::getTableName()), $pk);
        return self::findAll($condition, $params);
    }
public static function findAllByPk ( $ pk , $ condition = null , $ params = [ ] ) { $ class = get_called_class ( ) ; $ condition = ModelCondition :: getFrom ( $ condition , $ class ) ; $ condition -> compareColumn ( $ class :: getDb ( ) -> getTablePk ( $ class :: getTableName ( ) ) , $ pk ) ; return self :: findAll ( $ condition , $ params ) ; }
Return all models that have the selected primary keys.
@param int $pk
@param null|string|ModelCondition $condition
@param array $params
@return static[]
Return all models that have the selected primary keys .