[英]Query on TYPO3 IRRE property
我使用擴展構建器創建了一個新擴展,其中包括一些表和一些表之間的內聯關系。
對於報告,我需要一些查詢,其中選擇條件基於相關記錄。
在這里,我很難獲取數據(除了進行原始查詢,這似乎是錯誤的)。
uid
的字段。uid
的字段(雖然在數據庫中)。 'parent' => [
'config' => [
'type' => 'passthrough',
],
],
這可能是該字段即使插入到showitem
列表中也無法顯示在記錄中的showitem
。
public function getParentsByFilter($mainCondition,$subCondition) {
$parentQuery = $this->createQuery();
$parentQuery->matching(
$parentQuery->logicalAnd(
$parentQuery->equals('parent_field',$mainCondition)
// $childQuery->equals('children_field',$subCondition)
)
);
// $parentQuery->joinTable('tx_myext_domain_model_children', ...)
$parentQuery->setOrderings(['crdate'=> QueryInterface::ORDER_DESCENDING]);
$parentQuery->getQuerySettings()->setRespectStoragePage(false);
return $parentQuery ->execute();
}
在這里我不知道如何加入兒童表。
我期待一些像注釋行這樣的方法,但還沒有找到類似的方法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.