symfony - Add my own SQL stored routines on doctrine:schema:create? -
i learned doctrine doc site how let dql understand mysql function: http://docs.doctrine-project.org/en/2.0.x/cookbook/dql-user-defined-functions.html
i want define own functions, procedures, views, cursors, etc. in database, , implement whatever's needed in doctrine call them.
i understand implementation part (mostly, guess..) need way add functions , procedures in semi-automated way, such when update schema through command line.
i found doctrine has events can listen for, there's one, , it's called postconnect. doubtful if me. :-)
where hook in doctrine execute arbitrary sql when database schema generated?
i'm using doctrine2 , symfony2.
thanks.
Comments
Post a Comment