/** * Counts all associated WpPostsesAsPostParent * @return int */ public function CountWpPostsesAsPostParent() { if (is_null($this->intId)) { return 0; } return WpPosts::CountByPostParent($this->intId); }