The Tur and the Shulchan Aruch wrote in section 4 (Shulchan Aruch Yoreh Deah 326:4): Two people who made a dough of the required measure and divided it, and afterward each one added to his portion until they completed it to the required measure—behold, this is exempt. For they already had a time of obligation, and they were exempt at that time because they made it to divide. And the same law applies to one person who makes two kabin and his intention is to divide them and he divided them; but if he did not make them on the condition to divide them—the subsequent division is of no effect. Thus far their words. And so wrote the Rambam in the seventh chapter, law 9 (Rambam, Laws of Bikkurim and the Rest of the Priestly Gifts in the Borders 7:9), and it is from the Yerushalmi, third chapter (Yerushalmi Challah 3). And the Ra'avad cried out against this like a crane, that one should not rely on this Yerushalmi, for what is the difference between this and one who makes his dough into kabin and joins them, which is obligated in challah? And our teacher, the Beit Yosef, wrote that this is not a comparison, for there, there was never an obligation. But here, where there were two kabin, and there was an obligation upon it except that it was exempt because they made it with the intention to divide it—it has left the state of obligation entirely, and it is no longer obligated (Kesef Mishneh). And it is not understood: for ultimately there was no obligation upon it at the time of kneading, and what does it matter to me if the exemption is because it does not have the required measure of itself or because of division, for in any event there was no obligation at all upon this dough? And it requires further study. And it is obvious that if he added afterward the required measure by itself, this exempt portion did not exempt it (Shach, subsection 8). And the Pnei Moshe in Mareh HaPanim exerted himself with reasoning to settle the words of the Yerushalmi, and there is no more taste in all his words than what the Kesef Mishneh wrote, see there. And the Ra'avad further questioned: is there not no "rejection" regarding commandments? And the Kesef Mishneh wrote that this is not relevant to "rejection." And the Pnei Moshe elaborated on this, see there.
כתבו הטור והשולחן ערוך בסעיף ד (שולחן ערוך יורה דעה שכו, ד): שנים שעשו עיסה כשיעור וחלקוה, ואחר כך הוסיף כל אחד על חלקו עד שהשלימו לכשיעור – הרי זה פטורה. שכבר היתה להם שעת חובה, והם היו פטורים באותה שעה מפני שעשאוה לחלק. והוא הדין באדם אחד העושה שני קבין, ודעתו לחלקם וחלקם, אבל אם לא עשאם על מנת לחלקן – לא מהני החלוקה אחר. כך עד כאן לשונם. וכן כתב הרמב"ם בפרק שביעי דין ט (רמב"ם הלכות ביכורים ושאר מתנות כהונה שבגבולין ז ט), והוא מירושלמי פרק שלישי (ירושלמי חלה ג). והראב"ד צעק על זה ככרוכיא דאין לסמוך על זה הירושלמי, דמה בין זה לעושה עיסתו קבין והשיכן, שחייבת בחלה? ורבינו הבית יוסף כתב שאין זה דמיון, דשם לא היה חיוב מעולם. אבל כאן שהיו שני קבים, והיה עליה חיוב אלא שנפטרה מפני שעשו על דעת לחלקה – יצאה מידי חיוב לגמרי, ואינה חייבת עוד (כסף משנה). ואינו מובן: דסוף סוף לא היה עליה חיוב בשעת עריכה, ומה לי אם הפטור הוא מפני שאין בה כשיעור מצד עצמה או מצד חלוקה, והרי על כל פנים לא היה על עיסה זו שום חיוב? וצריך עיון. ופשיטא שאם הוסיף אחר כך כדי שיעור בפני עצמו שזו הפטורה לא פטרה אותה (ש"ך סעיף קטן ח'). והפני משה במראה הפנים התאמץ בסברא ליישב דברי הירושלמי, ואין בכל דבריו יותר טעם מכפי מה שכתב הכסף משנה, עיין שם. והראב"ד הקשה עוד: הא אין דיחוי אצל מצות? וכתב הכסף משנה שאין זה שייך לדיחוי. והפני משה האריך בזה, עיין שם.