On Thu, 7 Feb 2019 at 09:35, Benjamin Morel <benjamin.mo...@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]

Reply via email to