Closed yann-eugone closed 8 years ago
You use PommBundle ?
Plz see your code Controller
Yes, I use PommBundle, but I believe that the Bundle is not involved in the issue.
Here is the test code i use in the controller :
$posts = $this->getModel()->findAllPaginated(
$request->query->get('limit', 10),
$request->query->get('page', 1)
);
$iterator = $posts->getIterator();
$post = $iterator->current();
var_dump(isset($post->title));
Good catch, thank you :+1:
Hi all,
I'm facing a weird issue with my tests of Pomm ModelManager, integrated to Symfony.
I defined my models (from an existing database structure), queried my database, and got my objects back. But when I try to use the objects (originaly using Twig, but i get the same error by querying
isset($object->property)
) I'm facing this issue :Here is the stack trace :
Taking a look to the __isset method of FlexibleEntity you can see the following :
To me, the problem is that the call parenthesis are missing, the method should be :
And the problem may be the same in the __unset method, so :
I tried to fork the project, and create some tests. Unfortunately, Im' not very familiar with Atoum, and I got some problem running the test suite itself, so...