Mistake in handling return from EFQ count() method, as well as unnecessarily wrapping result in a WrapperQueryResults object.

Comments

zengenuity’s picture

Status: Active » Fixed

Removed count() method from WdEntityWrapper, and added executeCount() method.

Use like this:

<?php
$count = ExampleTypeNodeWrapperQuery::find()
    ->bySomeField($field_value)
    ->executeCount();
?>

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.