[TYPO3-mvc] [!!!] FYI:Changes in last Commit (r987)

Jochen Rau jochen.rau at typoplanet.de
Wed Jul 29 23:55:11 CEST 2009


Hi.

The last commit of Extbase was (again) quite large. It resolves some bugs.

If you want to discuss topics related to this commit you should consider 
to open new threads or join the already running discussions.

Please read the commit message for more information (or the copy below):

[~CONFIGURATION] BlogExample: Changed how relations blog->posts are 
stored to "comma separated list" (just for demonstration).
[!!!][+FEATURE] BlogExample: Implemented property "relatedPosts". 
Related Posts must be set via BE. Please update your database and clear 
your caches.

[FEATURE] Extbase (Persistence): Comma separated lists are now fully 
supported to store relations - although this way is deprecated. Use 
foreign keys instead.
[BUGFIX] Extbase (Persistence): Related objects are now deleted if they 
were detached from the parent object (e.g. $blog->removePost($post)). 
Still pending: Strategy for recursive deletions.
[BUGFIX] Extbase (Persistence): Adding relation to an ownerless Record 
works now. Resolves #4011.
[-TASK] Extbase (Persistence): Removed $useStoragePid from the method 
signature of $queryFactory->create($className).
[!!!][~TASK] Extbase (Persistence): All Query Settings are now stored 
inside a QuerySettings object. It is created and injected by the Query 
Factory with the default setting. To change the settings, you have to 
say $query->getQuerySettings(); an manipulate them before executing the 
Query. The API functions are now called setRespectStoragePageState(TRUE) 
for PID checking, and setCheckVisibilityState(TRUE) for adding enable 
fields. The method names may change in future!
[TASK] Extbase (Persistence): Improved parsing of the PID query part.
[TASK] Extbase (MVC): An Object Manager is now injected into the 
Abstract Controller (better testability).
[!!!][BUGFIX] Extbase (Domain): Username and password was not set after 
passing it to the constructor. CAUTION: Auto-Populating the BlogExample 
will add Frontend Users to your installation. Don't use the BlogExample 
in productive environments! No username and password will be set.
[TASK] Extbase (Domain): Optional properties are now set to a default value.
[TASK] Extbase (DomainObject): Added an internal method 
_getCleanProperties().
[TASK] Extbase (Persistence): The Lazy Loading 
Proxy->_loadRealInstance() invokes now 
$dataMapper->fetchRelatedObjects(). Removed duplicated code.
[+FEATURE] Extbase (Persistence): Implemented support for MM_table_where.
[~CONFIGURATION] extbase: Changed from "plugin" to "fe" in ext_emconf.php.
[BUGFIX] Extbase (Tests): Fixed some Unit Tests.

And there is a new way to query objects

$query->statement('SELECT * FROM Tx_Foo_Bar')->execute();

This is just a first sketch. I appreciate your feedback.

Regards
Jochen



-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list