Note that there are some explanatory texts on larger screens.

plurals
  1. POPropel Data Load - "default" context does not exist
    text
    copied!<p>I am currently stuck on the error <code>The "default" context does not exist.</code> when trying to build my data model with the command <code>symfony propel:build --application=frontend --all --and-load --no-confirmation</code></p> <p>After lots of Googling it appears this error is caused by using sfContext inside a model or a form so I have found these and commented them out (see below), the error still occurs, does anyone else know a fix?</p> <pre><code>&gt;&gt; file- /var/www/html/dev/meeting/config/generated-sfGuardPlugin-schema.xml &gt;&gt; file- /var/www/html/dev/meeting/config/generated-schema.xml &gt;&gt; propel load data from "/var/www/html/dev/meeting/data/fixtures" &gt;&gt; propel load data from "/var/www/html/dev/meeting/plugins/sfGuardPlugin/data/fixtures" The "default" context does not exist. </code></pre> <hr> <pre><code>grep -R sfContext lib/model/* lib/model/MeetingMeetings.php: return "";//sfContext::getInstance()-&gt;getController()-&gt;genUrl('meeting/show?id='.$this-&gt;getId(), $full); lib/model/sfGuardUserProfile.php: //if(!is_null(sfContext::getInstance())&amp;&amp;($useYou||$useYourself)&amp;&amp;$this-&gt;getUserId()==sfContext::getInstance()-&gt;getUser()-&gt;getId()) { grep -R sfContext lib/form/* lib/form/MeetingMeetingsForm.class.php: //sfContext::getInstance()-&gt;getUser()-&gt;setFlash("info", </code></pre> <p>Many thanks for your time,</p> <hr> <p>Not sure what information I can provide, does anyone have any other questions?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload