Did anyone managed to implement any ORM for WordPress? I have tried wp-orm (https://github.com/brandonwamboldt/wp-orm) but if I try to use
require 'wp-orm/wp-orm.php';
use WordPressOrmModelUser;
inside my plugin, I got error:
Parse error: syntax error, unexpected ‘use’ (T_USE) in /xxxxx on line
where us use.
What am I doing wrong?
Thank you…
Ok…I figure it out, if you are creating a plugin, you have to use USE outside your functions….