extbase

In an extbase extension, how to access the persistence layer from a scheduler task?

醉酒当歌 提交于 2019-11-27 14:33:21
What sounds a bit academic in the title is actually quite straightforward: I have set up a TYPO3 6.1 extbase extension that I've equipped with a scheduler task. The task is supposed to import a CSV file and save it into the extension's database fields. But how do I tell the scheduler task to use the extension's model etc. and save the received data into the persistence layer? I've seen this answer to a similar question: Execute repository functions in scheduler task and I think it points the right way, but I think need a full example to start understanding how the dependency injection works.

Extbase - get created sql from query

和自甴很熟 提交于 2019-11-27 09:29:16
i want to get some database tables from my typo3 extensions. The Extension is based on extbase. The query always returns nothing but the data exists I've tried this: $query = $this->createQuery(); $query->statement('SELECT * FROM `my_table` WHERE field = ? ORDER BY date DESC LIMIT 1', array($condition)); $results = $query->execute(); and this: $query = $this->createQuery(); $query->matching($query->equals('field', $condition)); $query->setOrderings(array('date' => Tx_Extbase_Persistence_QueryInterface::ORDER_DESCENDING)); $query->setLimit(1); $results = $query->execute(); both returns null as

In an extbase extension, how to access the persistence layer from a scheduler task?

删除回忆录丶 提交于 2019-11-26 16:48:37
问题 What sounds a bit academic in the title is actually quite straightforward: I have set up a TYPO3 6.1 extbase extension that I've equipped with a scheduler task. The task is supposed to import a CSV file and save it into the extension's database fields. But how do I tell the scheduler task to use the extension's model etc. and save the received data into the persistence layer? I've seen this answer to a similar question: Execute repository functions in scheduler task and I think it points the