X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) X-Junk-Score: 0 [] X-KAS-Score: 0 [] From: "Ricardo Parada" Received: from st43p00im-ztbu10063701.me.com ([17.58.63.178] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 25627362 for webobjects-dev@wocommunity.org; Thu, 25 Mar 2021 18:02:14 +0100 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=17.58.63.178; envelope-from=rparada@mac.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1616691711; bh=ds7PPv5oxlGAu0it07QgemWN8RaRPXpeFTIR5oe9nsc=; h=Content-Type:From:Mime-Version:Date:Subject:Message-Id:To; b=gfX6vzis4fQefahs+WRwVmA1om7+mZXuirXH+WdLKKOLwaAe3SzUnQcOWctCzoXvf 2qI4agBEHyeAwb0SO8TTj/lqZ6F0blX3PmRNWdvSAKMdyYEMSw9pD+d9IMEHzub/h6 vx0obbzNDQhe8tmA4mR8ik97VYgD9tAzLYlPdhrMDIKiX1eQNvOU5RxVXjjvC8wrt0 iQ0VcDt1zltwjOK2CQqQ92M3syX0wWfssAm4UKFyhu6WwP/wqEl4n3OXv50uGdM44O iThv+l1B1rVyKCns5kMsxZ+RQzqQrpTqtKWGd3LJONWwNZzg5m3T+K38LZPKo/v2HM /IvDMSo7MqdqA== Received: from [10.0.0.34] (c-174-61-52-234.hsd1.fl.comcast.net [174.61.52.234]) by st43p00im-ztbu10063701.me.com (Postfix) with ESMTPSA id 8D7429A0A48 for ; Thu, 25 Mar 2021 17:01:50 +0000 (UTC) Content-Type: multipart/alternative; boundary=Apple-Mail-DC6B7839-ED1C-4FD0-935F-5EC1B7A50DE8 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Date: Thu, 25 Mar 2021 13:01:48 -0400 Subject: ERXCopyable.CopyType = Nullify on to-many relationship should empty instead Message-Id: <5A72EDBF-5E64-4BD9-811A-D201CDA89B2E@mac.com> To: webobjects-dev@wocommunity.org X-Mailer: iPhone Mail (18D61) X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.369,18.0.761,17.0.607.475.0000000_definitions?= =?UTF-8?Q?=3D2021-03-25=5F04:2021-03-24=5F01,2021-03-25=5F04,2020-04-07?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxscore=0 adultscore=0 spamscore=0 clxscore=1015 suspectscore=0 mlxlogscore=544 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103250123 --Apple-Mail-DC6B7839-ED1C-4FD0-935F-5EC1B7A50DE8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello everyone, I like that in Wonder when you create an EO all the to-many relationships ar= e initialized to an empty array because it means that I don=E2=80=99t have t= o worry about null checking every time I access the to-many relationship in o= rder to avoid NullPointerExceptions.=20 However, if I create my EO by copying an existing one using ERXCopyable then= any to-many relationships that have ERXCopyable.CopyType set to Nullify wil= l be set to null.=20 Wouldn=E2=80=99t it be better to set them to an empty array? Or should we ha= ve an Emptify option? Thanks Ricardo Parada --Apple-Mail-DC6B7839-ED1C-4FD0-935F-5EC1B7A50DE8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello everyone,

I like t= hat in Wonder when you create an EO all the to-many relationships are initia= lized to an empty array because it means that I don=E2=80=99t have to worry a= bout null checking every time I access the to-many relationship in order to a= void NullPointerExceptions. 

However, if I cre= ate my EO by copying an existing one using ERXCopyable then any to-many rela= tionships that have ERXCopyable.CopyType set to Nullify will be set to null. <= /span>

Wouldn=E2=80=99t it be better to set them to an e= mpty array? Or should we have an Emptify option?

<= /font>
Thanks
Ricardo Parada
= --Apple-Mail-DC6B7839-ED1C-4FD0-935F-5EC1B7A50DE8--