Question

[Solved] PHP Fatal error: Uncaught Error: Class not found

I am trying to go trough tutorial of doctrine here is official website. And I got an error in Starting with the Product Entity part.

This is what I write to terminal: $ php create_product.php ORM

PHP Fatal error:  Uncaught Error: Class 'product' not found in /home/vaclav/Server/vssk/VSSK/project/create_product.php:8
Stack trace: #0 {main}
  thrown in /home/vaclav/Server/vssk/VSSK/project/create_product.php on line 8

Solution #1:

Solved with adding:

require_once 'patch_to_your_class/Product.php';

to create_product.php.

Respondent: Václav Stummer

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Most Popular

To Top
India and Pakistan’s steroid-soaked rhetoric over Kashmir will come back to haunt them both clenbuterol australia bossier man pleads guilty for leadership role in anabolic steriod distribution conspiracy