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

New project at Respect: samples #3

Open
nickl- opened this issue Apr 28, 2013 · 5 comments
Open

New project at Respect: samples #3

nickl- opened this issue Apr 28, 2013 · 5 comments

Comments

@nickl-
Copy link
Member

nickl- commented Apr 28, 2013

@alganet please give ops.

Need to customise labels and create "Easy Pick" issue to promote this project and encourage more contributions. Probably other restrictions would surface posing difficulty as well...

Brilliant idea!!!

@Respect have you all seen the new project? Tell us what you...

@hussani
Copy link
Contributor

hussani commented Apr 28, 2013

I think about write a sample about Respect/Relational.
Would be perfect one about Respect/Rest, but it's more hard to explain with one sample.

@alganet @nickl- what do you think guys?

@nickl-
Copy link
Member Author

nickl- commented May 1, 2013

@hussani I say cast novice concerns aside and reach for the skies. Don't worry too much about explaining just do something awesome.

There are no limits, uhm wait aside from using vanilla PHP and only Respect modules of course =)
Feel free to mix and match any combination you choose.
Looking forward to seeing your mix.

@alganet
Copy link
Member

alganet commented May 17, 2013

We could ship a demo of Respect\Relational working with sqlite! What do you guys think?

@nickl-
Copy link
Member Author

nickl- commented May 18, 2013

Here's a db design we can use covering the usual suspects, and then some.

  • has_one relationship
  • has_many relationship
  • has_many_to_many relationship
  • and then something I picked up on ruby which they refer to as polymorphic relationships, which may require more work but something for happy pandas.

What do you say @Respect ?

panda_base ERD
The diagrams live edit link on asciiflow.

@alganet
Copy link
Member

alganet commented May 18, 2013

I guess polymorphic association should be easy following the architecture of the new collection types: https://gist.github.com/alganet/4957800

A mockup of the API (following http://guides.rubyonrails.org/association_basics.html#polymorphic-associations):

use Respect\Data\Collections\Polymorphic;

$mapper->pictures = Polymorphic::on('imageable_id')->pictures;
$mapper->products($mapper->pictures)->fetch();

=D

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

3 participants