Changeset 129
- Timestamp:
- 03/11/07 08:54:24 (2 years ago)
- Files:
-
- trunk/lib/AkActiveRecord/AkHasAndBelongsToMany.php (modified) (1 diff)
- trunk/lib/AkActiveRecord/AkHasMany.php (modified) (1 diff)
- trunk/lib/AkInstaller.php (modified) (1 diff)
- trunk/script/test (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/AkActiveRecord/AkHasAndBelongsToMany.php
r119 r129 497 497 $this->Owner->notifyObservers('afterRemove'); 498 498 } 499 $this->Owner->{$this->association_id} = array_diff($this->Owner->{$this->association_id},array(null));500 499 } 501 500 trunk/lib/AkActiveRecord/AkHasMany.php
r55 r129 389 389 $this->Owner->notifyObservers('afterRemove'); 390 390 } 391 $this->Owner->{$this->association_id} = array_diff($this->Owner->{$this->association_id},array(null));392 391 } 393 392 trunk/lib/AkInstaller.php
r127 r129 406 406 function _needsDefaultAttributes($column) 407 407 { 408 return preg_match('/^(([A-Z0-9_ ]+)|(.+ string[^\(.]*)|(\*.*))$/i',$column);408 return preg_match('/^(([A-Z0-9_\(\)]+)|(.+ string[^\(.]*)|(\*.*))$/i',$column); 409 409 } 410 410 trunk/script/test
r17 r129 25 25 26 26 $tests_dir = realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'test'); 27 foreach ($argv as $ test){28 $ test = strstr($test,'.php') ? trim($test, '/') : $test.'.php';29 $ test = substr($test,0,5) == 'test/' ? substr($test,5) : $test;30 $ test = $tests_dir.DIRECTORY_SEPARATOR.$test;31 if(!file_exists($ test)){32 echo "\nCould not load $ testtest file\n";27 foreach ($argv as $_test_file){ 28 $_test_file = strstr($_test_file,'.php') ? trim($_test_file, '/') : $_test_file.'.php'; 29 $_test_file = substr($_test_file,0,5) == 'test/' ? substr($_test_file,5) : $_test_file; 30 $_test_file = $tests_dir.DIRECTORY_SEPARATOR.$_test_file; 31 if(!file_exists($_test_file)){ 32 echo "\nCould not load $_test_file test file\n"; 33 33 }else{ 34 require($ test);34 require($_test_file); 35 35 } 36 36 } 37 37 38 echo $ test;38 echo $_test_file; 39 39 40 40 echo "\n";
