A secondary is used for conditioning your beer. No fermentation is going on, so a yeast cake is not needed in secondary. If you decide to do a secondary then you should never transfer the whole yeast cake. The idea is to siphon the beer off of the yeast cake.
You don't transfer the yeast cake, period.