Am 23.08.2013 00:01, schrieb Jeroen De Dauw:
1. When constructing an id programmatically:
Old way: $itemId = new EntityId( 'item', 42 );
New way: $itemId = new ItemId( 'q42' );
In the database, we (generally) have the numeric ID and entity type. How do we
construct an ItemId from that? I suggest to have some static methods as
pseudo-constructors to make this easy.
Also, I'm afraid this change means that we'll start using the serialized form
internally, because it's convenient. I still think that this is a bad idea, even
if the prefix is no longer configurable.
-- daniel
_______________________________________________
Wikidata-tech mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech