nextras / orm

Orm with clean object design, smart relationship loading and powerful collections.
https://nextras.org/orm
MIT License
310 stars 57 forks source link

Access to relation id directly #304

Closed japlavaren closed 6 years ago

japlavaren commented 6 years ago

I have Entity with column parentId. Is possible to access directly to this column? I can call ->parent but it will create new sql command. I was searching in documentation but can not find solution for this case.

hrach commented 6 years ago

yes, you can access the "raw value" by getter getRawValue("parent")

japlavaren commented 6 years ago

great. Is it mentioned in documentation or I just missed it?

hrach commented 6 years ago

I see it's documented here: https://nextras.org/orm/docs/3.0/entity so closing this. Though, it could be more visible... :)