Re: Re: [RFC] [VOTE] Typed properties v2

From: Date: Thu, 07 Feb 2019 10:41:59 +0000
Subject: Re: Re: [RFC] [VOTE] Typed properties v2
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-104279@lists.php.net to get a copy of this message
On Thu, 7 Feb 2019 at 09:35, Benjamin Morel <benjamin.morel@gmail.com> wrote: > apologies if I've missed it, but have you actually said what that use case >> is? > > > Sorry if it wasn't clear in my original post. The use case is the > following: > > - a data mapper retrieves an object from the database > - for optimization purposes, we can ask the data mapper to return a > partial object, with only a handful of properties initialized > - when saving the (potentially partial) entity to the database, the data > mapper needs to read initialized properties only > So this entire feature request is to support something which the Doctrine manual spends several paragraphs saying you should probably never use? I can see that it would be elegant if this function existed, but it seems a thin justification for adding it, when the whole problem could just be approached a different way - e.g.add a property to the model called $_partialFields that stores which fields were initialised. Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#104279) next »