Author Commit Message Commit Date Estanislau Trepat 0d814771d61 M Merge branch 'patch-1' of https://github.com/andyhu/baum. Fix a small typo. 22 Jul 2013 andyhu 1124a79f0ed fix the small typo 21 Jul 2013 Estanislau Trepat 7020f21546a Implement simple scoping for a Nested Set tree. 22 Jul 2013 Estanislau Trepat cb9eda0f691 Update CHANGELOG & version bump. 18 Jul 2013 Estanislau Trepat a4c445d2b58 Fix missing array syntax change. 18 Jul 2013 Estanislau Trepat 9df3bf32bd1 Add tests for custom Eloquent\Query\Builder extensions. 08 Jul 2013 Estanislau Trepat 07979b58ddf Fix array syntax for PHP 5.3 compatibility. 08 Jul 2013 Estanislau Trepat 87f2d0e5ca5 Update CHANGELOG 05 Jul 2013 Estanislau Trepat 375250d0804 Fix error on test. 05 Jul 2013 Estanislau Trepat 1ca7400d792 Add tests for impossible moves. 04 Jul 2013 Estanislau Trepat f552ebf7885 Fix 'insideSubtree' method. 04 Jul 2013 Estanislau Trepat 88c1cf16800 Make Baum more Postgres friendly.
- Override Eloquent\Model->newBaseQueryBuilder to return a custom Baum\Extensions\Query\Builder object.
- Implement an extension to Eloquent\Query\Builder which drops ORDER BY clause before executing an aggregate function.
- To accomplish the last point, implement a reOrderBy method which will replace the current scope ORDER BY clauses.
- Make tests Postgres friendly too. 04 Jul 2013 Estanislau Trepat c47d43c4ad3 Make 'updateStructure' method public as we cannot call protected methods from closure scope. 04 Jul 2013 Estanislau Trepat a4a042abccf Small test fix to actually get the first root. 04 Jul 2013 Estanislau Trepat d6afda7b2fc Make array syntax compatible w/PHP 5.3.x 04 Jul 2013 Estanislau Trepat 5fdbeec2d9c Add support for PHP 5.3. Eloquen should work on PHP 5.3, so Baum should too.
- Ditch a ModelExtensions trait and subclass Eloquent\Model directly.
- Do not use inside closures. 04 Jul 2013 Estanislau Trepat 64132ff23bc Add drop test table after test suite run. This is so we may be using other database drivers than memory. 04 Jul 2013 Estanislau Trepat d9f2ca53cc3 Add test to check node creation with relation. 04 Jul 2013 Estanislau Trepat fbab919cca4 Only make travis run the tests when submitting the master branch. 03 Jul 2013 Estanislau Trepat d0209fc13f2 Add build status image to README 03 Jul 2013 Estanislau Trepat 1ccddc17d82 Test out Travis 03 Jul 2013 Estanislau Trepat 8eab0f3486f Update CHANGELOG 03 Jul 2013 Estanislau Trepat c5793d7600e Add left-out sorting option on scope. 03 Jul 2013 Estanislau Trepat 3a36f53ca50 Add immediateDescendants/getImmediateDescendants query scope and getter. 03 Jul 2013 Estanislau Trepat 7f5430204fa Add tests for moving, moved events dispatch. 03 Jul 2013 Estanislau Trepat c73fadba864 M Merge branch 'patch-1' of git://github.com/dirkpostma/baum into dirkpostma-patch-1 03 Jul 2013 dirkpostma b176e9964c9 Update README.md
Typo & bugfix 04 Jun 2013 Estanislau Trepat d52421eb143 Add tests for movement operations. 03 Jul 2013 Estanislau Trepat 9e569fcc5f6 Add logical sorting order by default and some sibling tests. 03 Jul 2013 Estanislau Trepat 4c760c59654 Order children by lft column by default. 03 Jul 2013 Estanislau Trepat 65962ed94a3 M Merge branch 'patch-2' of git://github.com/dirkpostma/baum into dirkpostma-patch-2 03 Jul 2013 dirkpostma 3900f7843f7 Order ancestors by lft to get logical sorting (in stead of random)
More sorting could be done in other methods. I have no time right now to patch. May be later :-) 05 Jun 2013 Estanislau Trepat 6bc07bd54fa Add initial test suite (still incomplete). 03 Jul 2013 Estanislau Trepat 49722cdf2cd Modify empty parent_id check to use "is_null" function. Merges pull-request #10." 03 Jul 2013 Dax Borges ede3220c860 Fix SQL error from empty parent_id when moving root nodes 18 Jun 2013 Estanislau Trepat 31441ae23af M Merge pull request #2 from robmeijer/master
Fix typos in README.md 17 May 2013 Rob Meijer 33a1b47c180 Fix typos in README.md 15 May 2013 Estanislau Trepat e70b8a0ab92 Add CHANGELOG.md file. 07 May 2013 Estanislau Trepat 417fcd2b425 Minor README.md fixes. 07 May 2013 Estanislau Trepat f7eb1e42d3a Ramp rev version up. 07 May 2013 Estanislau Trepat 57c63eaa8c0 Allow model events to propagate correctly into subclasses. Fixes #1. 07 May 2013 Estanislau Trepat fb1fcb242fa Fix misspell. 07 May 2013 Estanislau Trepat b1c92566504 Add indexes to 'parent_id', 'lft', 'rgt' columns by default. The point here is to have some indexes. Of course, the appropiate ones will depend on the application and specific use case. 06 May 2013 Estanislau Trepat 35ba45f20f6 Bump version 04 May 2013 Estanislau Trepat 30ff18c2d8c Fix generated migration class name. 04 May 2013 Estanislau Trepat 1c35f9f59c6 Improve README 04 May 2013 Estanislau Trepat fe51339271a Change package name to baum/baum. 04 May 2013 Estanislau Trepat eed40164e52 Prune deprecated folders. 03 May 2013 Estanislau Trepat aabc5f1af98 Update minimum php version and fix trailing comma. 03 May 2013 Estanislau Trepat c3caed75aa2 Add comments into the model stub displaying how the Nested Set configuration can be altered. 03 May 2013 ← Prev Next → require('plugin/commitgraph/network').applyCommits([{id: '0d814771d61cf7e508579fc11c1935c799396556', href: '/projects/WEB/repos/baum/commits/0d814771d61cf7e508579fc11c1935c799396556',parents: [{ id: '7020f21546acc97e58b5d361eb866e235149ab62' },{ id: '1124a79f0ed35940c383890aee3f1276d8d5d218' }]},{id: '1124a79f0ed35940c383890aee3f1276d8d5d218', href: '/projects/WEB/repos/baum/commits/1124a79f0ed35940c383890aee3f1276d8d5d218',parents: [{ id: 'cb9eda0f691093a87422b741b6c8db329fe8b579' }]},{id: '7020f21546acc97e58b5d361eb866e235149ab62', href: '/projects/WEB/repos/baum/commits/7020f21546acc97e58b5d361eb866e235149ab62',parents: [{ id: 'cb9eda0f691093a87422b741b6c8db329fe8b579' }]},{id: 'cb9eda0f691093a87422b741b6c8db329fe8b579', href: '/projects/WEB/repos/baum/commits/cb9eda0f691093a87422b741b6c8db329fe8b579',labels: [{name: '1.0.4', type: 'TAG', href: '/projects/WEB/repos/baum/browse?at=1.0.4'}],parents: [{ id: 'a4c445d2b582b220a5c25dcb312e3302b8a09c43' }]},{id: 'a4c445d2b582b220a5c25dcb312e3302b8a09c43', href: '/projects/WEB/repos/baum/commits/a4c445d2b582b220a5c25dcb312e3302b8a09c43',parents: [{ id: '9df3bf32bd17bc53c7aa5330676a655b16d95043' }]},{id: '9df3bf32bd17bc53c7aa5330676a655b16d95043', href: '/projects/WEB/repos/baum/commits/9df3bf32bd17bc53c7aa5330676a655b16d95043',parents: [{ id: '07979b58ddf437b3009f60eaa64e95e3904d297e' }]},{id: '07979b58ddf437b3009f60eaa64e95e3904d297e', href: '/projects/WEB/repos/baum/commits/07979b58ddf437b3009f60eaa64e95e3904d297e',parents: [{ id: '87f2d0e5ca5023e87f8f26658b4ae90dd944b279' }]},{id: '87f2d0e5ca5023e87f8f26658b4ae90dd944b279', href: '/projects/WEB/repos/baum/commits/87f2d0e5ca5023e87f8f26658b4ae90dd944b279',labels: [{name: '1.0.3', type: 'TAG', href: '/projects/WEB/repos/baum/browse?at=1.0.3'}],parents: [{ id: '375250d080480e1371d00b77de804067f3f5f3ac' }]},{id: '375250d080480e1371d00b77de804067f3f5f3ac', href: '/projects/WEB/repos/baum/commits/375250d080480e1371d00b77de804067f3f5f3ac',parents: [{ id: '1ca7400d792e2abdc22424996577b6746dfdbbae' }]},{id: '1ca7400d792e2abdc22424996577b6746dfdbbae', href: '/projects/WEB/repos/baum/commits/1ca7400d792e2abdc22424996577b6746dfdbbae',parents: [{ id: 'f552ebf78852fca039ddf7915d68039c543a756e' }]},{id: 'f552ebf78852fca039ddf7915d68039c543a756e', href: '/projects/WEB/repos/baum/commits/f552ebf78852fca039ddf7915d68039c543a756e',parents: [{ id: '88c1cf16800c01f659de0f068a4b3353d01344eb' }]},{id: '88c1cf16800c01f659de0f068a4b3353d01344eb', href: '/projects/WEB/repos/baum/commits/88c1cf16800c01f659de0f068a4b3353d01344eb',parents: [{ id: 'c47d43c4ad3a1a3ff16e179fc733a9397ac8ebd4' }]},{id: 'c47d43c4ad3a1a3ff16e179fc733a9397ac8ebd4', href: '/projects/WEB/repos/baum/commits/c47d43c4ad3a1a3ff16e179fc733a9397ac8ebd4',parents: [{ id: 'a4a042abccf841ac77fc5ea2291892b72a2e1398' }]},{id: 'a4a042abccf841ac77fc5ea2291892b72a2e1398', href: '/projects/WEB/repos/baum/commits/a4a042abccf841ac77fc5ea2291892b72a2e1398',parents: [{ id: 'd6afda7b2fcc64ffcb63ab54ae6ea96df73efcd1' }]},{id: 'd6afda7b2fcc64ffcb63ab54ae6ea96df73efcd1', href: '/projects/WEB/repos/baum/commits/d6afda7b2fcc64ffcb63ab54ae6ea96df73efcd1',parents: [{ id: '5fdbeec2d9cc22add91547ab7a3a647748cc63bb' }]},{id: '5fdbeec2d9cc22add91547ab7a3a647748cc63bb', href: '/projects/WEB/repos/baum/commits/5fdbeec2d9cc22add91547ab7a3a647748cc63bb',parents: [{ id: '64132ff23bc67b09bf5f3a555dacaffc7c0f3bfc' }]},{id: '64132ff23bc67b09bf5f3a555dacaffc7c0f3bfc', href: '/projects/WEB/repos/baum/commits/64132ff23bc67b09bf5f3a555dacaffc7c0f3bfc',parents: [{ id: 'd9f2ca53cc3367fab9c3571614e480c2359336ba' }]},{id: 'd9f2ca53cc3367fab9c3571614e480c2359336ba', href: '/projects/WEB/repos/baum/commits/d9f2ca53cc3367fab9c3571614e480c2359336ba',parents: [{ id: 'fbab919cca4d28e02552acadb37045d9ee7ba1da' }]},{id: 'fbab919cca4d28e02552acadb37045d9ee7ba1da', href: '/projects/WEB/repos/baum/commits/fbab919cca4d28e02552acadb37045d9ee7ba1da',parents: [{ id: 'd0209fc13f2b05264a05cf8ff85e795b60c17368' }]},{id: 'd0209fc13f2b05264a05cf8ff85e795b60c17368', href: '/projects/WEB/repos/baum/commits/d0209fc13f2b05264a05cf8ff85e795b60c17368',parents: [{ id: '1ccddc17d82a3b646e8c8fe23176088112f48423' }]},{id: '1ccddc17d82a3b646e8c8fe23176088112f48423', href: '/projects/WEB/repos/baum/commits/1ccddc17d82a3b646e8c8fe23176088112f48423',parents: [{ id: '8eab0f3486f26e53db6b6776ce8cb8f8c5026f8d' }]},{id: '8eab0f3486f26e53db6b6776ce8cb8f8c5026f8d', href: '/projects/WEB/repos/baum/commits/8eab0f3486f26e53db6b6776ce8cb8f8c5026f8d',labels: [{name: '1.0.2', type: 'TAG', href: '/projects/WEB/repos/baum/browse?at=1.0.2'}],parents: [{ id: 'c5793d7600e15711480bc8ea6830da6f4e3f4ca1' }]},{id: 'c5793d7600e15711480bc8ea6830da6f4e3f4ca1', href: '/projects/WEB/repos/baum/commits/c5793d7600e15711480bc8ea6830da6f4e3f4ca1',parents: [{ id: '3a36f53ca50e58c1295fe10d3fbac69c3461464b' }]},{id: '3a36f53ca50e58c1295fe10d3fbac69c3461464b', href: '/projects/WEB/repos/baum/commits/3a36f53ca50e58c1295fe10d3fbac69c3461464b',parents: [{ id: '7f5430204faddac53ed2b0f753eecc27cde2ecf3' }]},{id: '7f5430204faddac53ed2b0f753eecc27cde2ecf3', href: '/projects/WEB/repos/baum/commits/7f5430204faddac53ed2b0f753eecc27cde2ecf3',parents: [{ id: 'c73fadba864634af262609f7e99be516a7778730' }]},{id: 'c73fadba864634af262609f7e99be516a7778730', href: '/projects/WEB/repos/baum/commits/c73fadba864634af262609f7e99be516a7778730',parents: [{ id: 'd52421eb143bc3858d5efc44bdd77f05e4e6411e' },{ id: 'b176e9964c97a15456b0ae68ea6c47181cfa502a' }]},{id: 'b176e9964c97a15456b0ae68ea6c47181cfa502a', href: '/projects/WEB/repos/baum/commits/b176e9964c97a15456b0ae68ea6c47181cfa502a',parents: [{ id: '31441ae23af70e38abd4421a1699900b2215817c' }]},{id: 'd52421eb143bc3858d5efc44bdd77f05e4e6411e', href: '/projects/WEB/repos/baum/commits/d52421eb143bc3858d5efc44bdd77f05e4e6411e',parents: [{ id: '9e569fcc5f606fb46442e5be12557c9545c8f79e' }]},{id: '9e569fcc5f606fb46442e5be12557c9545c8f79e', href: '/projects/WEB/repos/baum/commits/9e569fcc5f606fb46442e5be12557c9545c8f79e',parents: [{ id: '4c760c59654e78dab7e4613d05182c0fbf0306ed' }]},{id: '4c760c59654e78dab7e4613d05182c0fbf0306ed', href: '/projects/WEB/repos/baum/commits/4c760c59654e78dab7e4613d05182c0fbf0306ed',parents: [{ id: '65962ed94a3aec9a2c5fb54a7822b2b357bee170' }]},{id: '65962ed94a3aec9a2c5fb54a7822b2b357bee170', href: '/projects/WEB/repos/baum/commits/65962ed94a3aec9a2c5fb54a7822b2b357bee170',parents: [{ id: '6bc07bd54fa4377d59afd634434483653a57235b' },{ id: '3900f7843f79d24baa42fa49ec36b907781bffed' }]},{id: '3900f7843f79d24baa42fa49ec36b907781bffed', href: '/projects/WEB/repos/baum/commits/3900f7843f79d24baa42fa49ec36b907781bffed',parents: [{ id: '31441ae23af70e38abd4421a1699900b2215817c' }]},{id: '6bc07bd54fa4377d59afd634434483653a57235b', href: '/projects/WEB/repos/baum/commits/6bc07bd54fa4377d59afd634434483653a57235b',parents: [{ id: '49722cdf2cd6165b3024fb3592bda76cfa8339ca' }]},{id: '49722cdf2cd6165b3024fb3592bda76cfa8339ca', href: '/projects/WEB/repos/baum/commits/49722cdf2cd6165b3024fb3592bda76cfa8339ca',parents: [{ id: 'ede3220c860a5670a2124287e4435383dd026759' }]},{id: 'ede3220c860a5670a2124287e4435383dd026759', href: '/projects/WEB/repos/baum/commits/ede3220c860a5670a2124287e4435383dd026759',parents: [{ id: '31441ae23af70e38abd4421a1699900b2215817c' }]},{id: '31441ae23af70e38abd4421a1699900b2215817c', href: '/projects/WEB/repos/baum/commits/31441ae23af70e38abd4421a1699900b2215817c',parents: [{ id: 'e70b8a0ab92797c3168d4b62e329d0abf580c185' },{ id: '33a1b47c180a4c58acdeb8ca3e11933235c9f5bb' }]},{id: '33a1b47c180a4c58acdeb8ca3e11933235c9f5bb', href: '/projects/WEB/repos/baum/commits/33a1b47c180a4c58acdeb8ca3e11933235c9f5bb',parents: [{ id: 'e70b8a0ab92797c3168d4b62e329d0abf580c185' }]},{id: 'e70b8a0ab92797c3168d4b62e329d0abf580c185', href: '/projects/WEB/repos/baum/commits/e70b8a0ab92797c3168d4b62e329d0abf580c185',parents: [{ id: '417fcd2b425bf914818c564125911920ca477bf7' }]},{id: '417fcd2b425bf914818c564125911920ca477bf7', href: '/projects/WEB/repos/baum/commits/417fcd2b425bf914818c564125911920ca477bf7',parents: [{ id: 'f7eb1e42d3a2a33f55facc250cd91befc0a79328' }]},{id: 'f7eb1e42d3a2a33f55facc250cd91befc0a79328', href: '/projects/WEB/repos/baum/commits/f7eb1e42d3a2a33f55facc250cd91befc0a79328',labels: [{name: '1.0.1', type: 'TAG', href: '/projects/WEB/repos/baum/browse?at=1.0.1'}],parents: [{ id: '57c63eaa8c0acf5376e80e7e2d4c371c89b90e76' }]},{id: '57c63eaa8c0acf5376e80e7e2d4c371c89b90e76', href: '/projects/WEB/repos/baum/commits/57c63eaa8c0acf5376e80e7e2d4c371c89b90e76',parents: [{ id: 'fb1fcb242fa82c377e459f0db7819f349de3ee38' }]},{id: 'fb1fcb242fa82c377e459f0db7819f349de3ee38', href: '/projects/WEB/repos/baum/commits/fb1fcb242fa82c377e459f0db7819f349de3ee38',parents: [{ id: 'b1c92566504ad07c5e720b9150bd61cd5ec9743e' }]},{id: 'b1c92566504ad07c5e720b9150bd61cd5ec9743e', href: '/projects/WEB/repos/baum/commits/b1c92566504ad07c5e720b9150bd61cd5ec9743e',parents: [{ id: '35ba45f20f6ea7fd24c257da23b7651d72f4a852' }]},{id: '35ba45f20f6ea7fd24c257da23b7651d72f4a852', href: '/projects/WEB/repos/baum/commits/35ba45f20f6ea7fd24c257da23b7651d72f4a852',labels: [{name: '1.0.0', type: 'TAG', href: '/projects/WEB/repos/baum/browse?at=1.0.0'}],parents: [{ id: '30ff18c2d8ce975a2baceec6cd389a8923d56548' }]},{id: '30ff18c2d8ce975a2baceec6cd389a8923d56548', href: '/projects/WEB/repos/baum/commits/30ff18c2d8ce975a2baceec6cd389a8923d56548',parents: [{ id: '1c35f9f59c68da3be19a4d99163807e27edad59c' }]},{id: '1c35f9f59c68da3be19a4d99163807e27edad59c', href: '/projects/WEB/repos/baum/commits/1c35f9f59c68da3be19a4d99163807e27edad59c',parents: [{ id: 'fe51339271a0a8d8ec87f9139dc10e93efe0821c' }]},{id: 'fe51339271a0a8d8ec87f9139dc10e93efe0821c', href: '/projects/WEB/repos/baum/commits/fe51339271a0a8d8ec87f9139dc10e93efe0821c',parents: [{ id: 'eed40164e52f9592d5e59d7a4a34e0cdb7642d94' }]},{id: 'eed40164e52f9592d5e59d7a4a34e0cdb7642d94', href: '/projects/WEB/repos/baum/commits/eed40164e52f9592d5e59d7a4a34e0cdb7642d94',parents: [{ id: 'aabc5f1af988b836000263537fd752006f0dcc5c' }]},{id: 'aabc5f1af988b836000263537fd752006f0dcc5c', href: '/projects/WEB/repos/baum/commits/aabc5f1af988b836000263537fd752006f0dcc5c',parents: [{ id: 'c3caed75aa218f0033ef402f285932b0c5983c11' }]},{id: 'c3caed75aa218f0033ef402f285932b0c5983c11', href: '/projects/WEB/repos/baum/commits/c3caed75aa218f0033ef402f285932b0c5983c11',parents: [{ id: 'ce972b92c6be8bc0f3c4ad52880bf836cd59526c' }]}]);