}
/**
- * Create a query to find references to a particular record
+ * Create a query to find references to a particular record.
*
* @param CRM_Core_DAO $targetDao
* The instance for which we want references.
- * @return CRM_Core_DAO a query-handle (like the result of CRM_Core_DAO::executeQuery)
+ * @return CRM_Core_DAO
+ * a query-handle (like the result of CRM_Core_DAO::executeQuery)
*/
public function findReferences($targetDao) {
$refColumn = $this->getReferenceKey();
$params = array(
1 => array($targetDao->$targetColumn, 'String'),
-
// If anyone complains about $targetDao::getTableName(), then could use
// "{get_class($targetDao)}::getTableName();"
2 => array($targetDao::getTableName(), 'String'),
$targetColumn = $this->getTargetKey();
$params = array(
1 => array($targetDao->$targetColumn, 'String'),
-
// If anyone complains about $targetDao::getTableName(), then could use
// "{get_class($targetDao)}::getTableName();"
2 => array($targetDao::getTableName(), 'String'),