[TYPO3-mvc] Move to linux: Nesting level too deep - recursive dependency?
Dmitri Pisarev
dimaip at gmail.com
Tue Mar 16 12:04:53 CET 2010
Hello dear community! I'm still trying to make my project work under
linux. This time I get the following error:
PHP Fatal error: Nesting level too deep - recursive dependency? in
/mnt/vol2/typo3_src-4.3.1/typo3/sysext/extbase/Classes/DomainObject/AbstractEntity.php
on line 126
In my model, class Job has a property Freelancer, and class Freelancer
has a lazy property jobs. This is how they are defined:
class Tx_Alex_Domain_Model_Job extends
Tx_Extbase_DomainObject_AbstractEntity {
..............
/**
* freelancer
* @var Tx_Alex_Domain_Model_Freelancer ---- This property can't be
lazy! If I make it lazy everything works
*/
protected $freelancer;
}
class Tx_Alex_Domain_Model_Freelancer extends
Tx_Extbase_DomainObject_AbstractEntity {
................
/**
* jobs
* @var Tx_Extbase_Persistence_ObjectStorage<Tx_Alex_Domain_Model_Job>
* @lazy
*/
protected $jobs;
}
And in tca.php:
Freelancer->jobs:
////////////////////////
'jobs' => array(
'exclude' => 0,
'label' =>
'LLL:EXT:alex/Resources/Private/Language/locallang_db.xml:tx_alex_domain_model_freelancer.jobs',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_alex_domain_model_job',
'foreign_field' => 'freelancer',
'maxitems' => 999999,
'appearance' => array(
'newRecordLinkPosition' => 'bottom',
'collapseAll' => 1,
'expandSingle' => 1,
),
)
),
////////////////////////////////
Job->freelancer:
////////////////////
'freelancer' => array(
'exclude' => 0,
'label' =>
'LLL:EXT:alex/Resources/Private/Language/locallang_db.xml:tx_alex_domain_model_job.freelancer',
'config' => array(
'type' => 'select',
'foreign_table' => 'tx_alex_domain_model_freelancer',
'minitems' => 0,
'maxitems' => 1,
)
),
///////////////////
Why is it happening?
Here is the phpinfo() of the server: http://pastebin.ca/1841091
Regards,
Dmitri.
More information about the TYPO3-project-typo3v4mvc
mailing list