i still not familiar symfony 1.4 , few things still unclear me.
what have done:
- i have added new table symfony 1.4 project's database (let's call "a")
- i have regenerated schema.yml file using
$ php symfony doctrine:build-schema
.
what do:
when submitting "add" form (in /new/
page) of another, different module, inserting row in "a" table.
-
in future, need fetch data "a" , display them in backend part of website.
i don't have backend module related new table. (should i? how?)
if want when add row table (let's call b
distinguish a
) can use doctrine's lifecycle hooks, pre
s , post
s. in case postinsert
. (you can use save
, update
, delete
, each pre
or post
).
each of functions executed in given moment (before or after event) of given event. save
hook executed after inserts or updates don't have copy functionality 2 functions.
you should implement method in b
class , add row a
.
to answer other question - it's best if use symfony's admin generator , create module a
. have list of rows, possibility filter list , modify rows.
Comments
Post a Comment