taylorotwell/eloquent — Issue #15: Configure relations outside of relation retrieval method
Author: Kindari
Created: 2012-02-21 06:36:52+00:00
State: open

I do love the syntax we currently have, but there is a major limiting factor, that we do not know about the relation until the method has been called and the related object gets returned. Because of this, set methods such as

$post->author = Auth::user();

cannot be done, because we do not know where this information is actually being stored. The current implementation simply ignores cases like this.

If a favorable configuration were to be decided on, I could submit an implementation.