Hi!
I want to list keywords only have sites.
$this->hasManyToMany(
"id",
__NAMESPACE__ . '\SitesKeywords',
"keyword_id", "site_id",
__NAMESPACE__ . '\Sites',
"id",
array(
'alias' => 'sites',
'params' => array(
'active' => 'Y'
)
)
);
How can i get results only related count greater than zero. For ex:
$parameters = array('active' => 'Y', 'sites > 0');
$keywords = Keywords::find($parameters);
Thanks