CommentController::buildQuery

protected function CommentController::buildQuery

protected CommentController::buildQuery($ids, $conditions = array(), $revision_id = FALSE)

Builds the query to load the entity.

This has full revision support. For entities requiring special queries, the class can be extended, and the default query can be constructed by calling parent::buildQuery(). This is usually necessary when the object being loaded needs to be augmented with additional data from another table, such as loading node type into comments or vocabulary machine name into terms, however it can also support $conditions on different tables. See CommentController::buildQuery() or 登录查看完整内容