2010-08-11 61 views
0

我真的很困惑。2個相同的YAML文件,但其中一個不顯示所有信息?

當我打開終端,做:php symfony doctrine:data-load有我的fixtures目錄本文件:

JobeetJob: 
    job_sensio_labs: 
    JobeetCategory: programming 
    type:   full-time 
    company:  Sensio Labs 
    logo:   sensio-labs.gif 
    url:   http://www.sensiolabs.com/ 
    position:  Web Developer 
    location:  Paris, France 
    description: | 
     You've already developed websites with symfony and you want to work 
     with Open-Source technologies. You have a minimum of 3 years 
     experience in web development with PHP or Java and you wish to 
     participate to development of Web 2.0 sites using the best 
     frameworks available. 
    how_to_apply: | 
     Send your resume to fabien.potencier [at] sensio.com 
    is_public: true 
    is_activated: true 
    token:  job_sensio_labs 
    email:  [email protected] 
    expires_at: '2010-10-10' 

    job_extreme_sensio: 
    JobeetCategory: design 
    type:   part-time 
    company:  Extreme Sensio 
    logo:   extreme-sensio.gif 
    url:   http://www.extreme-sensio.com/ 
    position:  Web Designer 
    location:  Paris, France 
    description: | 
     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do 
     eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut 
     enim ad minim veniam, quis nostrud exercitation ullamco laboris 
     nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor 
     in reprehenderit in. 

     Voluptate velit esse cillum dolore eu fugiat nulla pariatur. 
     Excepteur sint occaecat cupidatat non proident, sunt in culpa 
     qui officia deserunt mollit anim id est laborum. 
    how_to_apply: | 
     Send your resume to fabien.potencier [at] sensio.com 
    is_public: true 
    is_activated: true 
    token:  job_extreme_sensio 
    email:  [email protected] 
    expires_at: '2010-10-10' 

    expired_job: 
    JobeetCategory: programming 
    company:  Sensio Labs 
    position:  Web Developer 
    location:  Paris, France 
    description: Lorem ipsum dolor sit amet, consectetur adipisicing elit. 
    how_to_apply: Send your resume to lorem.ipsum [at] dolor.sit 
    is_public:  true 
    is_activated: true 
    created_at:  '2005-12-01 00:00:00' 
    token:   job_expired 
    email:   [email protected] 

# Starts at the beginning of the line (no whitespace before) 
<?php for ($i = 100; $i <= 130; $i++): ?> 
    job_<?php echo $i ?>: 
    JobeetCategory: programming 
    company:  Company <?php echo $i."\n" ?> 
    position:  Web Developer 
    location:  Paris, France 
    description: Lorem ipsum dolor sit amet, consectetur adipisicing elit. 
    how_to_apply: | 
     Send your resume to lorem.ipsum [at] company_<?php echo $i ?>.sit 
    is_public: true 
    is_activated: true 
    token:  job_<?php echo $i."\n" ?> 
    email:  [email protected] 

<?php endfor ?> 

萬物變細。

但是如果我更換了這一個(每剪切和粘貼代碼,而無需更換文件):

JobeetJob: 
    job_sensio_labs: 
    JobeetCategory: programming 
    type:   full-time 
    company:  Sensio Labs 
    logo:   sensio-labs.gif 
    url:   http://www.sensiolabs.com/ 
    position:  Web Developer 
    location:  Paris, France 
    description: | 
     You've already developed websites with symfony and you want to work 
     with Open-Source technologies. You have a minimum of 3 years 
     experience in web development with PHP or Java and you wish to 
     participate to development of Web 2.0 sites using the best 
     frameworks available. 
    how_to_apply: | 
     Send your resume to fabien.potencier [at] sensio.com 
    is_public: true 
    is_activated: true 
    token:  job_sensio_labs 
    email:  [email protected] 
    expires_at: '2009-02-28' 

    job_extreme_sensio: 
    JobeetCategory: design 
    type:   part-time 
    company:  Extreme Sensio 
    logo:   extreme-sensio.gif 
    url:   http://www.extreme-sensio.com/ 
    position:  Web Designer 
    location:  Paris, France 
    description: | 
     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do 
     eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut 
     enim ad minim veniam, quis nostrud exercitation ullamco laboris 
     nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor 
     in reprehenderit in. 

     Voluptate velit esse cillum dolore eu fugiat nulla pariatur. 
     Excepteur sint occaecat cupidatat non proident, sunt in culpa 
     qui officia deserunt mollit anim id est laborum. 
    how_to_apply: | 
     Send your resume to fabien.potencier [at] sensio.com 
    is_public: true 
    is_activated: true 
    token:  job_extreme_sensio 
    email:  [email protected] 
    expires_at: '2009-01-30' 

    expired_job: 
    JobeetCategory: programming 
    company:  Sensio Labs 
    position:  Web Developer 
    location:  Paris, France 
    description: Lorem ipsum dolor sit amet, consectetur adipisicing elit. 
    how_to_apply: Send your resume to lorem.ipsum [at] dolor.sit 
    is_public:  true 
    is_activated: true 
    expires_at:  '2005-12-01 00:00:00' 
    token:   job_expired 
    email:   [email protected] 

# Starts at the beginning of the line (no whitespace before) 
<?php for ($i = 100; $i <= 130; $i++): ?> 
    job_<?php echo $i ?>: 
    JobeetCategory: programming 
    company:  Company <?php echo $i."\n" ?> 
    position:  Web Developer 
    location:  Paris, France 
    description: Lorem ipsum dolor sit amet, consectetur adipisicing elit. 
    how_to_apply: | 
     Send your resume to lorem.ipsum [at] company_<?php echo $i ?>.sit 
    is_public: true 
    is_activated: true 
    token:  job_<?php echo $i."\n" ?> 
    email:  [email protected] 

<?php endfor; ?> 

在job_extreme_sensio的信息都存儲在數據庫中,但在瀏覽器中不顯示。

有什麼建議嗎?

回答

1

這些差異對您而言意義重大嗎?

--- php1 2010-08-11 16:02:28.000000000 +0200 
+++ php2 2010-08-11 16:02:57.000000000 +0200 
@@ -19,7 +19,7 @@ 
    is_activated: true 
    token:  job_sensio_labs 
    email:  [email protected] 
- expires_at: '2010-10-10' 
+ expires_at: '2009-02-28' 

    job_extreme_sensio: 
    JobeetCategory: design 
@@ -45,7 +45,7 @@ 
    is_activated: true 
    token:  job_extreme_sensio 
    email:  [email protected] 
- expires_at: '2010-10-10' 
+ expires_at: '2009-01-30' 

    expired_job: 
    JobeetCategory: programming 
@@ -56,7 +56,7 @@ 
    how_to_apply: Send your resume to lorem.ipsum [at] dolor.sit 
    is_public:  true 
    is_activated: true 
- created_at:  '2005-12-01 00:00:00' 
+ expires_at:  '2005-12-01 00:00:00' 
    token:   job_expired 
    email:   [email protected] 

@@ -75,4 +75,4 @@ 
    token:  job_<?php echo $i."\n" ?> 
    email:  [email protected] 

-<?php endfor ?> 
+<?php endfor; ?> 
相關問題