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

Restructuring with model observer for 5.3 compatibility #7

Merged
merged 6 commits into from
Jul 25, 2013

Conversation

rmasters
Copy link
Owner

PR for working towards issue #6.

Restructured most of the trait to an independant model observer that makes
using this on 5.3 possible, with a little extra code.

Moved test models out to separate files so that they can be included as needed
(5.3 raises syntax errors if it finds a class with a use-trait).
@ghost ghost assigned rmasters Jul 19, 2013
Fixes #2

There are 3 new traits - CreatedBy, UpdatedBy and DeletedBy, that add the
default relationship accessor when used with the user class defined in the
configuration.

Blameable is sticking around as a way of interrogating whether a model is
blameable for an event (most of the time you don't need to add it).

It turns out that traits can't extend other traits - they have to inherit from
them (i.e. use ParentTrait). This causes probelsm when you want several traits
to inherit a method, and then use several of those traits in one class - the
methods inherited from the base trait clash against themselves! I'm developing
on 5.4 so this might have been fixed in 5.5...
@rmasters
Copy link
Owner Author

Composer is taking 2 hours to run composer update nothing. I'll fix the lockfile and travis builds on another pc...

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 982477a on feature/php53-support into 3dd8b2f on master.

@rmasters rmasters merged commit 982477a into master Jul 25, 2013
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.

None yet

2 participants