After reading Dealing with a manager who won't let go of being a developer, I was intrigued to ask a question that more or less might be a result of that one.
Some time ago, I was tasked with a specific enhancement on a mobile app we are developing. I had to do both parts server-wise and client-wise and since no guidelines or mockups were given, I had to come up with a solution myself.
I'd given it some thought and started working on the solution. When the main functionality was ready, I went over to the manager to show him the progress and discuss it in general. The solution was "not good" since it did not use part of the legacy code that was already implemented in the server.
After talking it though while he insisted on doing it his way, I backed off and changed the code following his guidelines.
The enhancement was released to the clients and everyone was satisfied.
Then the deal breaker happened. Two clients reported their databases broken.
A restoration process started and I was called in his office with 2 other colleagues, the reviewer of my code and the QA guy that tested it (the QA does blackbox testing here), where he asked for an explanation. I spotted the issue almost immediately and told him.
What got me stunned was that I was to blame!
Even after he insisted on doing it his way, it was still my fault since "I did not convince him his way was wrong!". He started whining that if we were in a different company we would be both fired and giving me stories of other companies that only the employee was fired. He characterized me as stubborn, which he had already done quite a few times but all of them privately, so I had let them go.
After the incident, I ended up changing the code again, reverting to the solution that I implemented while working on the prototype.
The whole situation got me thinking. Was it really my fault?
TL;DR I was tasked with an enhancement. I built it way A. I was told to fix it by doing it way B (manager's way). Way B turns out to be faulty and the fix was doing it way A again. Manager accuses me since "I did not convince him his way was wrong!". Was I to blame?