Simplify method
[MAILPOET-2439]
This commit is contained in:
committed by
Jack Kitterhing
parent
37a97d966f
commit
ee9f886ce2
@@ -91,8 +91,6 @@ class NewsletterLinkEntity {
|
|||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
function getTotalClicksCount() {
|
function getTotalClicksCount() {
|
||||||
$criteria = Criteria::create()
|
return $this->clicks->count();
|
||||||
->where(Criteria::expr()->eq("link", $this));
|
|
||||||
return $this->clicks->matching($criteria)->count();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user