Jose Lorenzo Rodriguez
|
bc64a614b5
Avoiding notice when unlinking values using HasMany
|
10 years ago |
Mark Story
|
6e3b38ddd1
Revert "Make find(list) not auto-null on a behavior of 2.x"
|
10 years ago |
Yevgeny Tomenko
|
aec38c66db
Merge remote-tracking branch 'origin/master' into 3.2-indentifer-equals
|
10 years ago |
Yevgeny Tomenko
|
5ede142458
Added identiferEquals method for expressions to use fields with quoting in join conditions. Added identifier parameter for expressions.
|
10 years ago |
Mark Scherer
|
78892ef591
Make find(list) not auto-null on a behavior of 2.x where select(keyfield, valuefield) would autopopulate.
|
10 years ago |
Mark Story
|
618550ed3a
Merge branch 'master' into 3.2
|
10 years ago |
ndm2
|
9994790973
Make the `$cleanProperty` argument part of `$options`.
|
10 years ago |
ndm2
|
b496322a5d
Pass options to internal `Table` calls.
|
10 years ago |
Jose Lorenzo Rodriguez
|
8477fa8bb8
Moving result type conversion to the statements layer
|
10 years ago |
Luan Hospodarsky
|
1379da0a3d
Assuming that updateAll is always OK if no exceptions occurred in _unlink. Removing unnecessary test.
|
10 years ago |
Luan Hospodarsky
|
c99a54fe03
Assuming that deleteAll statement inside _unlink is always OK if no exceptions occurred. Removing unnecessary test
|
10 years ago |
Luan Hospodarsky
|
9a853a187a
Adding one more test, with entities to be added in a replace operation while the target table has no records
|
10 years ago |
Luan Hospodarsky
|
4bb24a91c0
HasMany::replace taking into consideration success of delete statements while unlinking
|
10 years ago |
Luan Hospodarsky
|
c1fa2bf05a
Adding PHPDoc for testReplaceHasMany method in test case. Renaming method replaceLinks to replace on HasMany.php. Grouping together HasMany tests.
|
10 years ago |
Luan Hospodarsky
|
6b4bfa1109
fixed flipped assertion values in TableTest. Changed assertEquals to assertCount where applicable. Methods link, unlink and replaceLinks now clean the entity when finished. dirty verification added in TableTest for link, unlink and replaceLinks tests. Switched to pure arrays in HasMany, cause of unnecessary use of Collection. Improved PHP doc.
|
10 years ago |
Luan Hospodarsky
|
bdf5d76f38
Implemented one more test to link function, in which an already existing link is present in the input data. Implemented replaceLinks method and a test for it.
|
10 years ago |
Luan Hospodarsky
|
1089927a30
Implemented public methods: link, unlink in HasMany association. A bit of refactory was necessary in _unlinkAssociated method, separating the parts of the code responsible to build the exclusion list and the part responsible to actually unlink. This last part is now present in _unlink method. This method is used when unlinking all or unlinking some associated objects.
|
10 years ago |
José Lorenzo Rodríguez
|
9dcda9b633
Merge pull request #7477 from mylux/issue-7462
|
10 years ago |
Yves P
|
d2993dd1d1
Reorder fixtures to prove that the order does not matter anymore
|
10 years ago |
Luan Hospodarsky
|
942784984d
Using Collections instead of pure arrays.Fixed wrong property name in TableTest.
|
10 years ago |
Luan Hospodarsky
|
e8f69d2994
Fixed bug in _unlinkAssociated where non necessary null values would appear into $conditions variable, causing trouble with replace save strategy and new associated entities to be created. Added a test to cover this case
|
10 years ago |
Luan Hospodarsky
|
0b3afb855d
Fixing PHPCS
|
10 years ago |
Luan Hospodarsky
|
8453225249
Removing commented out code
|
10 years ago |
Luan Hospodarsky
|
e82e801846
Implementing CascadeCallbacks when using saveStrategy. optimized in _unlinkAssociated
|
10 years ago |
Luan Hospodarsky
|
3bad846125
Removed unecessary line, changed the stratagy in _foreignKeyAcceptsNull, so now it does not make use of array_product. Improved tests in those responsivle for testing save strategy adding one more entity to be saved. Changed the SQL operator in _unlinkAssociated, so it will be compliant to what it is supposed to do
|
10 years ago |
Luan Hospodarsky
|
85a2e8c84f
Cascade delete also triggered when foreign key does not accept nullvalues
|
10 years ago |
Luan Hospodarsky
|
10f8798a82
Adding cascade delete for dependent HasMany associations
|
10 years ago |
Luan Hospodarsky
|
a237c897cc
Implemented feature discussed in #7462
|
10 years ago |
Mark Story
|
aa824c7f81
Merge branch 'master' into 3.1
|
10 years ago |
José Lorenzo Rodríguez
|
5c56ede8f6
Merge pull request #7079 from robertpustulka/3.0-get
|
10 years ago |