コード例 #1
0
 /**
  * Checks if this PropertyContent is valid for saving.
  *
  * Returns false if the entity does not have a DataType set.
  *
  * @see Content::isValid()
  */
 public function isValid()
 {
     //TODO: provide a way to get the data type from the holder directly!
     return parent::isValid() && $this->getProperty()->getDataTypeId() !== null;
 }