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
The product object has the relation to category object.
protected $relations = [ 'category' => ['hasOne', '\Module\Shop\Model\Category', 'cat_id'], ];
However if i print {{ product.category.name }} , it will print product , not the category object, due to the __call method of Mysqlidb.
{{ product.category.name }}
product
__call
So twig can't call to lazy load properties ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The product object has the relation to category object.
However if i print
{{ product.category.name }}
, it will printproduct
, not the category object, due to the__call
method of Mysqlidb.So twig can't call to lazy load properties ?
The text was updated successfully, but these errors were encountered: