Re: [Pharo-users] Voyage: VOToOneDescription or VOMongoToOneDescription

2017-03-04 Thread Sabine Manaa
Hi Hilaire,

https://github.com/pharo-nosql/voyage/issues/56

The classes have been renamed.
VOToOneDescription is new
VOMongoToOneDescription is old

Regards
Sabine



2017-03-03 11:08 GMT+01:00 HilaireFernandes [via Smalltalk] <
ml-node+s1294792n4936998...@n4.nabble.com>:

> Hi,
>
> VOToOneDescription or VOMongoToOneDescription, that is the question?
>
> I am confuse because:
>
> This one works:
>
> mongoStartDate
> 
> ^ VOToOneDescription new
>attributeName: 'startDate';
>accessor: (MAPluggableAccessor
>   read: [:loan | loan startDate]
>   write: [:loan :dateAndTime | loan startDate: dateAndTime asDate]);
>yourself
>
>
>
> This one breaks:
>
> mongoStartDate
> 
> ^ VOMongoToOneDescription new
>attributeName: 'startDate';
>accessor: (MAPluggableAccessor
>   read: [:loan | loan startDate]
>   write: [:loan :dateAndTime | loan startDate: dateAndTime asDate]);
>yourself
>
>
> However, the tutorial on Entreprise Pharo book only mention the later one.
>
> So what the differences?
>
> Thanks
>
> Hilaire
>
> --
> Dr. Geo
> http://drgeo.eu
>
>
> http://drgeo.eu
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://forum.world.st/Voyage-VOToOneDescription-or-
> VOMongoToOneDescription-tp4936998.html
> To start a new topic under Pharo Smalltalk Users, email
> ml-node+s1294792n1310670...@n4.nabble.com
> To unsubscribe from Pharo Smalltalk Users, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://forum.world.st/Voyage-VOToOneDescription-or-VOMongoToOneDescription-tp4936998p4937273.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

[Pharo-users] Voyage: VOToOneDescription or VOMongoToOneDescription

2017-03-03 Thread Hilaire
Hi,

VOToOneDescription or VOMongoToOneDescription, that is the question?

I am confuse because:

This one works:

mongoStartDate

^ VOToOneDescription new
   attributeName: 'startDate';
   accessor: (MAPluggableAccessor
  read: [:loan | loan startDate]
  write: [:loan :dateAndTime | loan startDate: dateAndTime asDate]);
   yourself



This one breaks:

mongoStartDate

^ VOMongoToOneDescription new
   attributeName: 'startDate';
   accessor: (MAPluggableAccessor
  read: [:loan | loan startDate]
  write: [:loan :dateAndTime | loan startDate: dateAndTime asDate]);
   yourself


However, the tutorial on Entreprise Pharo book only mention the later one.

So what the differences?

Thanks

Hilaire

-- 
Dr. Geo
http://drgeo.eu