[TYPO3-mvc] Howto call a ViewHelper like f:link.action in my own view helper class?

Raymund Tump raymund.tump at gmx.de
Sun Jan 23 17:27:44 CET 2011


Hi Franz,

> This question has been asked and answered just 3 days ago - but
> the answer is most likely not what you wanted to hear ;)

Well, I really did a search. I admit I didn't search in the group archive,
but I'm probably not really good with search keys :-)

> That depends. It it is possible for you to create a DB relation between
> services and customers extbase would fetch and store the services in 
> your services property of the customer.

The thing is that I have no idea how to model that relation. It is
obviously a 1:m relation, but do I need a MM table or can I do that
without.

> Example for b):

Great, thanks that works well.

>    // fetch the services - however you currently do it is fine

Actually, no. But I rewrote it to match.

I'm wondering if there would be a way to use $query calls to achieve
the following SQL query:

SELECT DISTINCT `tx_references_domain_model_service`.* FROM
`tx_references_domain_model_service`,`tx_references_domain_model_project`
WHERE `tx_references_domain_model_project`.`customer` = ' .
$customer->getUid() .' AND `tx_references_domain_model_service`.`uid`
$customer->= `tx_references_domain_model_project`.`service` ORDER BY
$customer->`tx_references_domain_model_service`.name

-- 
Kind regards
Raymund



More information about the TYPO3-project-typo3v4mvc mailing list