Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
$this->getRequest()->setError('delete', 'Could not delete the selected <?phpechosfInflector::humanize($this->getSingularName())?>. Make sure it does not have any associated items.');
$this->getRequest()->setError('delete', 'Could not delete the selected <?phpechosfInflector::humanize($this->getSingularName())?>. Make sure it does not have any associated items.');
sfContext::getInstance()->getLogger()->err('The sfDoctrine::queryFrom() method is deprecated; use "Doctrine_Query::create()->from($className)" instead.');
<summary>This plugin allows symfony users to use doctrine instead of propel.</summary>
<description>This plugin fully integrates doctrine into symfony. You can use *all* the features in symfony with propel replaced by doctrine.</description>
$this->t->is($rel->get('localName'),'BookI18n','i18n relation name is not a plural');
$this->t->is($this->getClass('ColAggregation')->getTable()->getColumn('class_key')->getProperty('type'),'integer','inheritance field is defined (as an integer)');
$this->t->like($userGroupPhp[0]['source'],"#ownsOne\('User as User', 'User2Group.group_id', 'id'\)#",'has many to many with cascade properly defined');
}
}
//Load doctrine schema from fixtures and run tests
$this->t->is(count($tables),2,"->getTables() should return 2 table from fixture.");
$this->t->ok(in_array('testTable',array_keys($tables)),"->getTables() should return 'testTable' from fixture.");
$this->t->diag('->classes');
$this->t->is(count($this->classes),2,"->classes should have 2 class from fixture");
$this->t->ok($this->getClass('TestTable'),"->classes should have 'TestTable' from fixture.");
$this->t->ok($this->getClass('TestTable')->getColumn('dummy_id')->hasRelation(),'foreign relation is properly imported');
#$this->t->diag('->asDoctrineYml()');
#$yml = $this->asDoctrineYml();
#$this->t->cmp_ok(strlen($yml['source']), '>', 0, "->asDoctrineYml() doctrine YAML shoudl not be empty.");
$this->t->diag('->findClassByTableName()');
$this->t->is($this->findClassByTableName('testTable')->getPhpName(),'TestTable',"->findClassByTableName() returns 'TestTable' class for 'testTable' table.");
$yml=$this->asDoctrineYml();
$yml=$yml['source'];
$this->t->like($yml,'@cascadeDelete: 1@','onDelete is generated');