Lost SugarController::*_save() methods call

Hi!
I need to implements a feature in the project in which there will be an external file storage. Iā€™m planning to store uploaded documents straight into SharePoint. For that purpose I planned to call service (which should handle file transferring to SharePoint) in SugarController::action_save() method. I added pre_save(), post_save() and, of course, action_save() methods right into CustomController class in modules/Contacts/controller.php and surprisingly found out that none of them was actually called after clicking Save button in Contacts EditView form. Even SugarController::action_save() method was not called during debug session.
This is the first time I needed to dig into this part of SuiteCRM magic. And it was really amazing for me. Itā€™s extremely weird since SugarCRM Developer Guide clearly suggests to override those methods if needed http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Module_Framework/MVC/Controller/
I know everything about logic hooks and its ā€˜before_saveā€™ variation. But Iā€™d like to stay in controllerā€™s layer to have ā€˜clearā€™ request data.
So there are two questions

  1. Am I wrong in catching those methods calls?
  2. If not is it the only way to catch all the data after clicking Save button in ā€˜before_saveā€™ logic hook?

Thank you!

I donā€™t know about the controller, but what exactly do you think might be missing from the logic hook? I think you can get everything there, in nice bean classes, with all the relationships you might need, etc.

To be honest we can have the bean instance in the controller also. But agreeā€¦ I was not clear and precise enough in my initial post. Hereā€™s my idea. I like Symfony approach on working with container in controllers. And I would like to reproduce the same approach in the project: get all dependencies needed from the container in the entry point of application (in controller!) and pass them to the service responsible for processing uploaded file. That is what I want to do in action_save()! The trick mentioned above in SugarCRM dev guide would let me to do the things in the Symfony-like way if it works. Logic hook toolbox is spread all over the code - beans, relationships, views, api calls, etc. And specially ā€˜before_saveā€™ is mostly SugarBean-related thing in my opinion. Of course I can even use SugarBean::save() method to call the logic needed. But in fact I donā€™t want to save almost anything in my custom bean I would like to create for this particular use case besides local id and id on the remote system. I would like the SugarBean to be ā€œpassiveā€, not Active Record :). Of course it looks like more ideology than technology.