Пример #1
0
 public function testCantGetPhpDefaultValue()
 {
     $value = $this->getColumnDefaultValueMock();
     $value->expects($this->once())->method('isExpression')->will($this->returnValue(true));
     $domain = new Domain();
     $domain->setDefaultValue($value);
     $this->setExpectedException('Propel\\Generator\\Exception\\EngineException');
     $domain->getPhpDefaultValue();
 }
Пример #2
0
 /**
  * Returns the default value suitable for use in PHP.
  *
  * @return mixed
  * @see Domain::getPhpDefaultValue()
  */
 public function getPhpDefaultValue()
 {
     return $this->domain->getPhpDefaultValue();
 }