You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently support the parent_key_id attribute as an integer id. We should add support for also using a parent key string name. Something like id_or_name.
Example:
def build_model(entity)
model_entity = new
model_entity.id = entity.key.id unless entity.key.id.nil?
model_entity.id = entity.key.name unless entity.key.name.nil?
if entity.key.parent.present?
model_entity.parent_key_id = entity.key.parent.id if entity.key.parent.id.present?
model_entity.parent_key_id = entity.key.parent.name if entity.key.parent.name.present?
end
model_entity
end
The text was updated successfully, but these errors were encountered:
We currently support the
parent_key_id
attribute as an integer id. We should add support for also using a parent key string name. Something like id_or_name.Example:
The text was updated successfully, but these errors were encountered: