gallas12 / php-linq

linq v programovacím jazyce php naprogramovaný metodikou oop
7 stars 6 forks source link

Class not found in ``PHP Version 7.2.15-0ubuntu0.18.04.2`` #1

Open rajesh-smartwebtech opened 5 years ago

rajesh-smartwebtech commented 5 years ago

i am using linq on php 7.2.15 i have found class undefined error

Erorr:

Fatal error:  Uncaught Error: Class 'Linq\Factory\JoinFactory' not found in /var/www/html/tmp/vendor/linq/php-linq/linq/LinqFactory.php:25
Stack trace:
#0 /var/www/html/tmp/pp.php(28): Linq\LinqFactory::createLinq()
#1 {main}
  thrown in /var/www/html/tmp/vendor/linq/php-linq/linq/LinqFactory.php on line 25

and my code is


require 'vendor/autoload.php';
$linq = \Linq\LinqFactory::createLinq();

$list_execution_history = [];
//filtering data - select only users who are older than 23
$select_array = $linq->from( $list_execution_history)
->where(function($item){
    return $item;
})->select();

print_r( $select_array );
rajesh-smartwebtech commented 5 years ago

here issue is class declaration in not work properly may be so

ak-el-a commented 5 years ago

Linq\Factory\JoinFactory - the problem is in a capital letter in namespace (Factory). Directory has name factory. How to solve this problem?

rickslayer commented 4 years ago

When I changed the folders factory and helper to capital letter, works. Now, its necessary make a pull request with these modifications. The last commit was 3 years ago. Are this project discontinued?