Rajout du dossier core + MAJ .gitignore
This commit is contained in:
18
core/lib/Thelia/Model/FolderI18n.php
Normal file
18
core/lib/Thelia/Model/FolderI18n.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Thelia\Model;
|
||||
|
||||
use Propel\Runtime\Connection\ConnectionInterface;
|
||||
use Thelia\Model\Base\FolderI18n as BaseFolderI18n;
|
||||
use Thelia\Model\Tools\I18nTimestampableTrait;
|
||||
|
||||
class FolderI18n extends BaseFolderI18n
|
||||
{
|
||||
use I18nTimestampableTrait;
|
||||
|
||||
public function postInsert(ConnectionInterface $con = null)
|
||||
{
|
||||
$folder = $this->getFolder();
|
||||
$folder->generateRewrittenUrl($this->getLocale());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user