This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class NumericWriter extends \RedBean_QueryWriter_PostgreSQL implements \RedBean_QueryWriter{ | |
| const C_DATATYPE_NUMERIC = 10; | |
| public function __construct(\RedBean_Adapter $adapter ) { | |
| parent::__construct( $adapter ); | |
| $this->typeno_sqltype[self::C_DATATYPE_NUMERIC] = ' numeric '; | |
| $this->sqltype_typeno[trim(' numeric ')] = self::C_DATATYPE_NUMERIC; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class BaseModel extends \Phalcon\Mvc\Model { | |
| private function checkRelationsCommon($operation,$fields,$referenceModel, $referencedFields) { | |
| $feedback = []; | |
| if (!property_exists($this,$fields)) { | |
| $feedback[] = "Cannot find field " . get_class($this) . "->${fields} used by ${operation} in Object " . get_class($this); | |
| } |