-
Notifications
You must be signed in to change notification settings - Fork 397
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
[WIP] Introducing data-mapper and unit of work. #795
Closed
Closed
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
620d2f0
Implemented data-mapper.
3de3c4b
Implemented roughly working update mechanism
fef250a
implemented lazy loading for non-relation fields
2895c80
More CrossRelation stuff
4add32d
More componenents.
marcj 3509bff
More stuff.
marcj 40fe9ca
more tests green
marcj a10e4bd
more tests green
marcj d406816
Started converting Sortable to new Component system.
marcj b88b3ca
backup
marcj e3c88e4
More stuff
marcj 3cace39
fixed issue with having two or more relations on the same local column
marcj 4b95472
Added filterByPrimaryKeys, useQuery and correct join methods to query…
marcj bf4ff82
Made AggregateFieldBehavior more workable and thus some tests green.
marcj 6df10dc
Added nested sessions, to allow using a session in its events again. …
marcj 39bb204
made first AggregateField tests green
marcj 0db9e6e
made all AggregateField tests green, fixed SqlitePlatform name genera…
marcj 7bb1a9e
Added SQLite support. Started with converting Archiveable behavior.
marcj cbf5baf
Added Archiveable support and made SchemaReader support the old schema
marcj 31c5508
Made almost 10% test suite green. Started with implementing concrete …
marcj be30308
More concrete inheritance fixes
marcj bc9ea26
removed debugging stuff
marcj 25d5ec2
Fixed ConcreteInheritanceTest, extracted Repository behavior hooks in…
marcj 2b0a007
Made concrete inheritance tests completely green
marcj ecb97cc
Started with implementing delegateBehavior
marcj 943e2a3
Fixed DelegateBehavior tests
marcj 741da41
Allow inserting custom auto-increment if allowed.
marcj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
src/Propel/Generator/Behavior/AggregateColumn/templates/objectUpdate.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/Propel/Generator/Behavior/AggregateField/templates/objectUpdate.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
/** | ||
* Updates the aggregate column <?=$column->getName()?> | ||
* | ||
* @param ConnectionInterface $con A connection object | ||
*/ | ||
public function update<?=$column->getName()?>(ConnectionInterface $con) | ||
{ | ||
$this->set<?=$column->getName()?>($this->compute<?=$column->getName()?>($con)); | ||
$this->save($con); | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...gateColumn/templates/queryFindRelated.php → ...egateField/templates/queryFindRelated.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO you should try to avoid such kind of CS changes.. the diff will be already huge and hard to review because of the changes in a lot of places all over the lib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO some few CS changes shouldn't hurt in a PR that has several ten thousand line changes.