Currently, my code looks like this:
public function listAction() {
$this->forward('show', NULL, NULL, array('myArgument' => 14));
}
It's forwarding the user directly to the 'show'-view. It's always forwarding to the object with the UID 14. When the user deletes this object, an error will occur.
The code is supposed to forward the user to the first element in the list. Is there something like forward('show', NULL, NULL, array('myArgument' => first))
?
Using 'show' as default action in the ext_localconf.php causes an error as well because no arguments are defined, I guess.
With this you will send the uid of your first object to the other method (for ex: show), thus you will need to get the object back with a call to your repository (a findByUid for example)
You can also use correct annotation to your show method so that it will treat your argument as an object