1. Go to this page and download the library: Download ansas/propel-helper library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ansas / propel-helper example snippets
use Base\User as BaseUser;
use Ansas\Propel\Helper\ReadOnly;
class User extends BaseUser
{
use ReadOnly;
}
use Base\User as BaseUser;
use Ansas\Propel\Helper\SimpleVersionableBehavior;
class User extends BaseUser
{
use SimpleVersionableBehavior;
/**
* Class name for versionable behavior active records
*/
const VERSIONABLE_CLASS = 'UserVersion';
/**
* Column names (in default PhpName notation) to skip when populating this with version entry
*/
const VERSIONABLE_POPULATE_SKIP_COLUMNS = ['UpdatedAt', 'Version'];
}
protected function addValidationError($key, $value, $overwrite = true)
protected function resetValidation()
public function getValidationErrors()
public function hasValidationErrors()
abstract protected function doValidate();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.