What action is my Symfony/Doctrine generated form actually going to?
Posted
by Arms
on Stack Overflow
See other posts from Stack Overflow
or by Arms
Published on 2010-06-04T22:12:35Z
Indexed on
2010/06/05
12:32 UTC
Read the original article
Hit count: 189
In my Symfony 1.4 project I am using the doctrine:generate-admin
task to create the modules that compose my backend system. One such module is "journeys". When I view the source of the "journeys/new" page (which displays the form to create a new journey entity) the action of the form is simply "journeys" (I expected it to be "journeys/create"). The "journeys" route on its own would call the executeIndex
method - however I put a log call in there and upon form submission, the log is not made. So this leads me to believe that executeIndex
is NOT being called, and another piece of code is being fired upon form submission that then (depending on a hidden input in the form) calls either executeCreate()
or executeUpdate()
. Problem is, I don't know where that would be happening. Any insight would be much appreciated.
I don't if this is relevant, but here is the routing definition for the journeys module
journey:
class: sfDoctrineRouteCollection
options:
model: journey
module: journeys
prefix_path: /journeys
column: id
with_wildcard_routes: true
Thanks!
© Stack Overflow or respective owner