Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Row::$pseudo #18

Closed
yespire opened this issue Apr 24, 2016 · 1 comment
Closed

Idea: Row::$pseudo #18

yespire opened this issue Apr 24, 2016 · 1 comment

Comments

@yespire
Copy link
Contributor

yespire commented Apr 24, 2016

@pmjones @harikt

this is related to row/record property value assignment
the idea is that, we CAN allow user to add additional properties

$user->full_name = $user->first_name .' '. $user->last_name; // assume full_name is not a field

we can check against "cols" + "related", on miss, we add the full_name to "pseudo" data array

@pmjones
Copy link
Contributor

pmjones commented Apr 27, 2016

we can check against "cols" + "related", on miss, we add the full_name to "pseudo" data array

I struggled with this a bit myself when working through the initial versions of Atlas. What I came to was this: Atlas is for the persistence model. If a field is not part of the data being persisted, then, what place does it have in the persistence model? As such, I think "pseudo fields" belong in the domain model, not in the persistence model.

@pmjones pmjones closed this as completed Apr 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants