Hi everyone,
I have something like more advanced problem, so I hope someone will help.
No need for looking for variables and functions matches, I have good editor, and if there is any, it is because I am translating code to english.
Here I have class DBobject, which contains all common database methods, but my focus is on two:
public static function find_by_sql($sql) { global $pdo; // pdo connection works fine $query = $pdo->query($sql); $object_array = array(); while($row = $query->fetchAll()) { $object_array[] = static::instantiat