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

Change Entity Namespace #4577

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

mostafakhudair
Copy link
Contributor

Change Entity class namespace
Refactor Entity casts

  • Component(s) with PHPdocs
  • User guide updated
  • Conforms to style guide

@mostafakhudair
Copy link
Contributor Author

mostafakhudair commented Apr 16, 2021

@paulbalandan i'm done here, would you like to review this?

@samsonasik
Copy link
Member

What is the benefit of new namespace? next we need to move "Model" classes to Model namespace? The current usage is easier to access (no need deep namespace extends) for mostly db based apps.

@mostafakhudair
Copy link
Contributor Author

The benefit is not about the namespace, it's about organize system directories/sub-directories

@paulbalandan
Copy link
Member

I'm done here. I would like @MGatner to take final look.

}
$this->_cast = $cast;
return $this;
parent::__construct($data);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the point of this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing,, removed :D

Copy link
Member

@MGatner MGatner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Any final requests or concerns?

@mostafakhudair
Copy link
Contributor Author

mostafakhudair commented Apr 19, 2021

should i add Services::entity() in a separated PR? or push it in this PR? or we shouldn't added it anyway?

@MGatner
Copy link
Member

MGatner commented Apr 21, 2021

Let's hold off on a service for now. I'd like some resolution to our interface discussion before we start adding more services for classes that don't use interfaces.

@MGatner MGatner merged commit 50c8c81 into codeigniter4:develop Apr 21, 2021
@mostafakhudair mostafakhudair deleted the entity-namespace branch April 26, 2021 14:24
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

Successfully merging this pull request may close these issues.

4 participants