Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104279 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 78709 invoked from network); 7 Feb 2019 14:00:35 -0000 Received: from unknown (HELO mail-it1-f181.google.com) (209.85.166.181) by pb1.pair.com with SMTP; 7 Feb 2019 14:00:35 -0000 Received: by mail-it1-f181.google.com with SMTP id i145so13574830ita.4 for ; Thu, 07 Feb 2019 02:42:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vTuVQ4FjAKvhppnKDf6u9EGlsQnNxMTXNNvbrigEOFk=; b=SO/syDzQdZAeT98/WctHZjLAbW74mzyUZpgY/1O9UnKOedD8amzkbof8WNpfenKFMh RGqN04BjY9MJKsxwcXRXwRoBEKzojjNch0Jmje3iyyXjICRiKq/kD2H20OcPMjK5tzxY M5yGrEUdvOOGZ7yBO6/0ucWJP2Xb6ul9wzN4ZCj/iI+TxC6rHq6x7G0wMIdW7EGhz+sP K0kHWF2OGyyQq9rONtPzzS4tAMXhwP1cnTAcKMWCxvY7GSRKoUYBKu/0dAshU4e9lJHS Bvc9H2BJrg+45munSh7/xGmxjd+wtzx1VRNiORu6Tc5IGttrHmubtFxf2O+DAa/f9cu7 QmhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vTuVQ4FjAKvhppnKDf6u9EGlsQnNxMTXNNvbrigEOFk=; b=RmrrgZt6yXwFDaNyXrFveD5Kt628AF/PMBBVcJfZrVF169y4qnrHECnxhje4oG65kF Lsn1uVtB6N9ff0ukfkTzhgbpZyOnIPIuIWtyOEw6Q0PDD/Yw8WNErVWghFZeYn7pBbTR h6dLn1kw9NcxKYR3HlARNm+JBwlw3piRFiUW9e43oHFZ6hrLvYGBqgnoMj9onop46Q69 FchiK6QWE0iMAk9IAYashweJjNUi0Kp08qVeC3cBFoaa3cGxGZMza5WV2+kHDxeZ2FJ1 g9EgpiELDTPuSn3M+YxQhpkQsKOOSIBrkzPb8VT29y2xoJ68HLJjX2hqeR2dfxaAAL0+ iFxw== X-Gm-Message-State: AHQUAuauxhJBXNE1QZOiFog0h/xUvCHWPP0QlfnU9dH7oNuGrFiX3DQE MtnEpqkDWpZOVZTPZ9GLzrKG9p5FqjPtutiX1YQ= X-Google-Smtp-Source: AHgI3IYZmLrXBou0eBEbate9oSlkPDkXdc1jGhHf6nDQUePBmJhEFDyUwLqPOzyE9haDBayrWiJu73hcj6atfjuimrA= X-Received: by 2002:a24:32c5:: with SMTP id j188mr4536361ita.139.1549536131747; Thu, 07 Feb 2019 02:42:11 -0800 (PST) MIME-Version: 1.0 References: <595b374c-bc4f-9b8a-0013-6485abbfb477@php.net> <41D0A782-E4E2-4B98-9C5D-174143DE9A76@gmail.com> In-Reply-To: Date: Thu, 7 Feb 2019 10:41:59 +0000 Message-ID: To: Benjamin Morel Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000b317cc05814b7e92" Subject: Re: [PHP-DEV] Re: [RFC] [VOTE] Typed properties v2 From: rowan.collins@gmail.com (Rowan Collins) --000000000000b317cc05814b7e92 Content-Type: text/plain; charset="UTF-8" On Thu, 7 Feb 2019 at 09:35, Benjamin Morel 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] --000000000000b317cc05814b7e92--