We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As I already posted this on the forum, PHP-AR fails when the class_name involves namespaced models (it might be here).
class_name
<?php namespace foo\bar\biz; class User extends \ActiveRecord\Model { static $has_many = array( array('user_newsletters', 'class_name' => '\foo\bar\biz\UserNewsletter'), array('newsletters', 'class_name' => '\foo\bar\biz\Newsletter', 'through' => 'user_newsletters') ); } // … $user->newsletters; // ReflectionException: Class UserNewsletter does not exist
The test is now in this branch.
The text was updated successfully, but these errors were encountered:
More trouble related to it.
$user = User::find(1, array('include' => array('usernewsletters'))); ActiveRecord\DatabaseException: 42S22, 1054, Unknown column 'class_name' in 'where clause'
Sorry, something went wrong.
The first issue is now working, eager-loading remains though (#107)
greut@8c93932
Test for GH-101, first shot.
a5a8292
GH-101 has_many through using a namespace is now working (classify was
classify
8c93932
a bad idea)
No branches or pull requests
As I already posted this on the forum, PHP-AR fails when the
class_name
involves namespaced models (it might be here).The test is now in this branch.
The text was updated successfully, but these errors were encountered: